]> granicus.if.org Git - clang/commitdiff
minor simplifications
authorChris Lattner <sabre@nondot.org>
Sat, 21 Jul 2007 05:33:26 +0000 (05:33 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 21 Jul 2007 05:33:26 +0000 (05:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40176 91177308-0d34-0410-b5e6-96231b3b80d8

AST/Expr.cpp

index e05373d89d8579cd3344d8e1dbc4ede2a9237e77..46dc38ccf71e72d15c7367537895f6e1e7d831d4 100644 (file)
@@ -195,13 +195,13 @@ bool Expr::hasLocalSideEffect() const {
 ///
 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