diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-11-10 02:17:20 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-11-10 02:17:20 +0000 |
commit | f8f3f9ddbc5a0b96a4cca7b5cea57c0ac5105369 (patch) | |
tree | b9bed1a2e4591a45fd76e4c8902f66826f7ab972 /clang/lib/Analysis/CFRefCount.cpp | |
parent | ab799110c6162e0ac5cde7f43efcb36e54bfca45 (diff) | |
download | bcm5719-llvm-f8f3f9ddbc5a0b96a4cca7b5cea57c0ac5105369.tar.gz bcm5719-llvm-f8f3f9ddbc5a0b96a4cca7b5cea57c0ac5105369.zip |
Rename: StripCasts describes what it does better.
getBaseRegion will be used in another method.
llvm-svn: 86649
Diffstat (limited to 'clang/lib/Analysis/CFRefCount.cpp')
-rw-r--r-- | clang/lib/Analysis/CFRefCount.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp index 03614e83398..f63c43ec42f 100644 --- a/clang/lib/Analysis/CFRefCount.cpp +++ b/clang/lib/Analysis/CFRefCount.cpp @@ -3050,7 +3050,7 @@ void CFRefCount::EvalObjCMessageExpr(ExplodedNodeSet& Dst, const LocationContext *LC = Pred->getLocationContext(); if (const ImplicitParamDecl *SelfDecl = LC->getSelfDecl()) { SVal SelfVal = St->getSVal(St->getRegion(SelfDecl, LC)); - if (L->getBaseRegion() == SelfVal.getAsRegion()) { + if (L->StripCasts() == SelfVal.getAsRegion()) { // Update the summary to make the default argument effect // 'StopTracking'. Summ = Summaries.copySummary(Summ); |