[cfe-commits] r40176 - /cfe/trunk/AST/Expr.cpp
Chris Lattner
sabre at nondot.org
Fri Jul 20 22:33:27 PDT 2007
Author: lattner
Date: Sat Jul 21 00:33:26 2007
New Revision: 40176
URL: http://llvm.org/viewvc/llvm-project?rev=40176&view=rev
Log:
minor simplifications
Modified:
cfe/trunk/AST/Expr.cpp
Modified: cfe/trunk/AST/Expr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/AST/Expr.cpp?rev=40176&r1=40175&r2=40176&view=diff
==============================================================================
--- cfe/trunk/AST/Expr.cpp (original)
+++ cfe/trunk/AST/Expr.cpp Sat Jul 21 00:33:26 2007
@@ -195,13 +195,13 @@
///
Expr::isLvalueResult Expr::isLvalue() const {
// first, check the type (C99 6.3.2.1)
- if (isa<FunctionType>(TR.getCanonicalType())) // from isObjectType()
+ if (TR->isFunctionType()) // from isObjectType()
return LV_NotObjectType;
if (TR->isIncompleteType() && TR->isVoidType())
return LV_IncompleteVoidType;
- if (isa<ReferenceType>(TR.getCanonicalType())) // C++ [expr]
+ if (TR->isReferenceType()) // C++ [expr]
return LV_Valid;
// the type looks fine, now check the expression
More information about the cfe-commits
mailing list