diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-23 17:57:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-23 17:57:53 +0000 |
commit | 7fd0995e993438a3a1f5408d8549b3af0009ff30 (patch) | |
tree | 008289ca3302201b58b7bfebb73eb29a7b7850a0 /lib/AST/Expr.cpp | |
parent | b9bbe49f513080b3307e88bdee0d383f4b8c1d4e (diff) |
use isa<>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67543 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Expr.cpp')
-rw-r--r-- | lib/AST/Expr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AST/Expr.cpp b/lib/AST/Expr.cpp index 789fbc5ce1..92310902e2 100644 --- a/lib/AST/Expr.cpp +++ b/lib/AST/Expr.cpp @@ -786,7 +786,7 @@ Expr::isModifiableLvalueResult Expr::isModifiableLvalue(ASTContext &Ctx) const { // void takeclosure(void (^C)(void)); // void func() { int x = 1; takeclosure(^{ x = 7; }); } // - if (getStmtClass() == BlockDeclRefExprClass) { + if (isa<BlockDeclRefExpr>(this)) { const BlockDeclRefExpr *BDR = cast<BlockDeclRefExpr>(this); if (!BDR->isByRef() && isa<VarDecl>(BDR->getDecl())) return MLV_NotBlockQualified; @@ -807,7 +807,7 @@ Expr::isModifiableLvalueResult Expr::isModifiableLvalue(ASTContext &Ctx) const { } // Assigning to an 'implicit' property? - else if (getStmtClass() == ObjCKVCRefExprClass) { + else if (isa<ObjCKVCRefExpr>(this)) { const ObjCKVCRefExpr* KVCExpr = cast<ObjCKVCRefExpr>(this); if (KVCExpr->getSetterMethod() == 0) return MLV_NoSetterProperty; |