diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-11-16 06:16:27 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-11-16 06:16:27 +0000 |
| commit | 9ce8a533cd241138942df5540333e2713fb16d78 (patch) | |
| tree | bd8057f78c24576dd6ca8a466c0773719135eec8 | |
| parent | 44152742a03ae30d0e92ed315eea65aa2590be86 (diff) | |
| download | bcm5719-llvm-9ce8a533cd241138942df5540333e2713fb16d78.tar.gz bcm5719-llvm-9ce8a533cd241138942df5540333e2713fb16d78.zip | |
daniel prefers completed thoughts.
llvm-svn: 59404
| -rw-r--r-- | clang/lib/CodeGen/CGExprScalar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp index a838a0523a0..d87edc3e7b2 100644 --- a/clang/lib/CodeGen/CGExprScalar.cpp +++ b/clang/lib/CodeGen/CGExprScalar.cpp @@ -1163,7 +1163,7 @@ VisitConditionalOperator(const ConditionalOperator *E) { // If this is a really simple expression (like x ? 4 : 5), emit this as a // select instead of as control flow. We can only do this if it is cheap and - // safe to + // safe to evaluate the LHS and RHS unconditionally. if (E->getLHS() && isCheapEnoughToEvaluateUnconditionally(E->getLHS()) && isCheapEnoughToEvaluateUnconditionally(E->getRHS())) { llvm::Value *CondV = CGF.EvaluateExprAsBool(E->getCond()); |

