aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-07-21 05:33:26 +0000
committerChris Lattner <sabre@nondot.org>2007-07-21 05:33:26 +0000
commitcb4f9a6d0be445d84af35ba81323be6127816f9e (patch)
tree66fc9887b493c57e4063a3e9f86ad5e9a24cd8e7
parent4fc37c515826dc506631178e58f1d0ae495ff100 (diff)
minor simplifications
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40176 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--AST/Expr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/AST/Expr.cpp b/AST/Expr.cpp
index e05373d89d..46dc38ccf7 100644
--- a/AST/Expr.cpp
+++ b/AST/Expr.cpp
@@ -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