[cfe-commits] r107626 - /cfe/trunk/lib/Sema/SemaExpr.cpp
Chris Lattner
sabre at nondot.org
Mon Jul 5 12:36:34 PDT 2010
Author: lattner
Date: Mon Jul 5 14:36:34 2010
New Revision: 107626
URL: http://llvm.org/viewvc/llvm-project?rev=107626&view=rev
Log:
fix a bug I introduced in r107624
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=107626&r1=107625&r2=107626&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Mon Jul 5 14:36:34 2010
@@ -6080,12 +6080,9 @@
<< op->getType() << op->getSourceRange();
if (isSFINAEContext())
return QualType();
- }
-
- if (isa<ObjCSelectorExpr>(op))
+ } else if (isa<ObjCSelectorExpr>(op))
return Context.getPointerType(op->getType());
-
- if (lval != Expr::LV_Valid && lval != Expr::LV_IncompleteVoidType) {
+ else if (lval != Expr::LV_Valid && lval != Expr::LV_IncompleteVoidType) {
// C99 6.5.3.2p1
// The operand must be either an l-value or a function designator
if (!op->getType()->isFunctionType()) {
More information about the cfe-commits
mailing list