aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-11-16 06:16:27 +0000
committerChris Lattner <sabre@nondot.org>2008-11-16 06:16:27 +0000
commit531a550531c144a58438f187816abbf1879e1c4e (patch)
tree2936af5ce805b099e921752cbd9d6e393d3b2fa6
parent512cdb57a045e9b889112a0c6ce724b173442763 (diff)
daniel prefers completed thoughts.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59404 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/CGExprScalar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp
index a838a0523a..d87edc3e7b 100644
--- a/lib/CodeGen/CGExprScalar.cpp
+++ b/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());