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 | 656711a36b2be1b2c2663f016badd59e3c3f26b3 (patch) | |
| tree | 87abe8ac2d55fba83117a21df315cb168445555f /clang/lib | |
| parent | 0d5ca29b7836d55a3a73f83d7e36b4bd35f8d85f (diff) | |
| download | bcm5719-llvm-656711a36b2be1b2c2663f016badd59e3c3f26b3.tar.gz bcm5719-llvm-656711a36b2be1b2c2663f016badd59e3c3f26b3.zip | |
use isa<>
llvm-svn: 67543
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/AST/Expr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp index 789fbc5ce1d..92310902e28 100644 --- a/clang/lib/AST/Expr.cpp +++ b/clang/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; |

