[cfe-commits] r81863 - /cfe/trunk/lib/Sema/SemaExpr.cpp

Anders Carlsson andersca at mac.com
Tue Sep 15 09:03:44 PDT 2009


Author: andersca
Date: Tue Sep 15 11:03:44 2009
New Revision: 81863

URL: http://llvm.org/viewvc/llvm-project?rev=81863&view=rev
Log:
Use getTrueExpr/getFalseExpr as suggested by Doug.

Modified:
    cfe/trunk/lib/Sema/SemaExpr.cpp

Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=81863&r1=81862&r2=81863&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Tue Sep 15 11:03:44 2009
@@ -5064,8 +5064,8 @@
     return QualType();
   } else if (ConditionalOperator *CO = dyn_cast<ConditionalOperator>(op)) {
     // FIXME: Can LHS ever be null here?
-    if (!CheckAddressOfOperand(CO->getLHS(), OpLoc).isNull())
-      return CheckAddressOfOperand(CO->getRHS(), OpLoc);
+    if (!CheckAddressOfOperand(CO->getTrueExpr(), OpLoc).isNull())
+      return CheckAddressOfOperand(CO->getFalseExpr(), OpLoc);
   } else if (dcl) { // C99 6.5.3.2p1
     // We have an lvalue with a decl. Make sure the decl is not declared
     // with the register storage-class specifier.





More information about the cfe-commits mailing list