From 7fd0995e993438a3a1f5408d8549b3af0009ff30 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 23 Mar 2009 17:57:53 +0000 Subject: [PATCH] use isa<> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67543 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/Expr.cpp | 4 ++-- 1 file 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(this)) { const BlockDeclRefExpr *BDR = cast(this); if (!BDR->isByRef() && isa(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(this)) { const ObjCKVCRefExpr* KVCExpr = cast(this); if (KVCExpr->getSetterMethod() == 0) return MLV_NoSetterProperty; -- 2.40.0