]> granicus.if.org Git - clang/commitdiff
daniel prefers completed thoughts.
authorChris Lattner <sabre@nondot.org>
Sun, 16 Nov 2008 06:16:27 +0000 (06:16 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 16 Nov 2008 06:16:27 +0000 (06:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59404 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGExprScalar.cpp

index a838a0523a0b657db769cda40a4dbe425d599fc3..d87edc3e7b2692af9f340959b38a03123a5dd0fb 100644 (file)
@@ -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());