summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/CFRefCount.cpp
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2009-08-25 03:33:41 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2009-08-25 03:33:41 +0000
commit94ec649b335f1f9022dac1f6e4af2344d41788c2 (patch)
treec11782bfd3d7403870dcf30e656ca7ca4ddc42f1 /clang/lib/Analysis/CFRefCount.cpp
parent4562f1f0668f0fbbaecc225a5c22654809f8cc56 (diff)
downloadbcm5719-llvm-94ec649b335f1f9022dac1f6e4af2344d41788c2.tar.gz
bcm5719-llvm-94ec649b335f1f9022dac1f6e4af2344d41788c2.zip
Remove Decl and CFG from ExplodedGraph. This leads to a series small changes.
llvm-svn: 79973
Diffstat (limited to 'clang/lib/Analysis/CFRefCount.cpp')
-rw-r--r--clang/lib/Analysis/CFRefCount.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp
index d1f293e40c0..6d678f1c4fe 100644
--- a/clang/lib/Analysis/CFRefCount.cpp
+++ b/clang/lib/Analysis/CFRefCount.cpp
@@ -3025,7 +3025,7 @@ void CFRefCount::EvalObjCMessageExpr(ExplodedNodeSet& Dst,
// Special-case: are we sending a mesage to "self"?
// This is a hack. When we have full-IP this should be removed.
- if (isa<ObjCMethodDecl>(&Eng.getGraph().getCodeDecl())) {
+ if (isa<ObjCMethodDecl>(Pred->getLocationContext()->getDecl())) {
if (Expr* Receiver = ME->getReceiver()) {
SVal X = St->getSValAsScalarOrLoc(Receiver);
if (loc::MemRegionVal* L = dyn_cast<loc::MemRegionVal>(&X)) {
OpenPOWER on IntegriCloud