diff options
author | Douglas Gregor <dgregor@apple.com> | 2008-11-04 14:56:14 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2008-11-04 14:56:14 +0000 |
commit | cd9b46e5442a3ef17f83f75177d8545cb5b3e2b9 (patch) | |
tree | c4982037cbe80fc24de02eab44941ae4cf7cd701 /lib/Analysis/CheckObjCDealloc.cpp | |
parent | 796da18402f286b897782a298ae3b20c459c102e (diff) |
Add a new expression class, ObjCSuperExpr, to handle the Objective-C 'super'. Remove ObjCThis from PredefinedExpr
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58698 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CheckObjCDealloc.cpp')
-rw-r--r-- | lib/Analysis/CheckObjCDealloc.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Analysis/CheckObjCDealloc.cpp b/lib/Analysis/CheckObjCDealloc.cpp index e41c827184..8628ff122c 100644 --- a/lib/Analysis/CheckObjCDealloc.cpp +++ b/lib/Analysis/CheckObjCDealloc.cpp @@ -30,9 +30,7 @@ static bool scan_dealloc(Stmt* S, Selector Dealloc) { if (ME->getSelector() == Dealloc) if(ME->getReceiver()) if (Expr* Receiver = ME->getReceiver()->IgnoreParenCasts()) - if (PredefinedExpr* E = dyn_cast<PredefinedExpr>(Receiver)) - if (E->getIdentType() == PredefinedExpr::ObjCSuper) - return true; + return isa<ObjCSuperExpr>(Receiver); // Recurse to children. |