summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-01-13 21:24:22 +0000
committerJustin Bogner <mail@justinbogner.com>2014-01-13 21:24:22 +0000
commit0718a3a42004047fa034c31bc7b0b72e2fc24888 (patch)
treefd9ff863545d93ba56decb3f5c27e0c52d5f6674 /clang/lib/CodeGen/CGExpr.cpp
parent06bd6d04e05ee77710707ca777cbf25da4c414f5 (diff)
downloadbcm5719-llvm-0718a3a42004047fa034c31bc7b0b72e2fc24888.tar.gz
bcm5719-llvm-0718a3a42004047fa034c31bc7b0b72e2fc24888.zip
CodeGen: Rename adjustFallThroughCount -> adjustForControlFlow
adjustFallThroughCount isn't a good name, and the documentation was even worse. This commit attempts to clarify what it's for and when to use it. llvm-svn: 199139
Diffstat (limited to 'clang/lib/CodeGen/CGExpr.cpp')
-rw-r--r--clang/lib/CodeGen/CGExpr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp
index 940022bdddc..4f0c221450f 100644
--- a/clang/lib/CodeGen/CGExpr.cpp
+++ b/clang/lib/CodeGen/CGExpr.cpp
@@ -2680,7 +2680,7 @@ EmitConditionalOperatorLValue(const AbstractConditionalOperator *expr) {
eval.begin(*this);
LValue lhs = EmitLValue(expr->getTrueExpr());
eval.end(*this);
- Cnt.adjustFallThroughCount();
+ Cnt.adjustForControlFlow();
if (!lhs.isSimple())
return EmitUnsupportedLValue(expr, "conditional operator");
@@ -2694,7 +2694,7 @@ EmitConditionalOperatorLValue(const AbstractConditionalOperator *expr) {
eval.begin(*this);
LValue rhs = EmitLValue(expr->getFalseExpr());
eval.end(*this);
- Cnt.adjustFallThroughCount();
+ Cnt.adjustForControlFlow();
if (!rhs.isSimple())
return EmitUnsupportedLValue(expr, "conditional operator");
rhsBlock = Builder.GetInsertBlock();
OpenPOWER on IntegriCloud