diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-06-16 06:16:46 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-06-16 06:16:46 +0000 |
commit | bd409d040bffef3e7ba862941dd706b1f7021141 (patch) | |
tree | a83e67b82cf321b082966747899fb17cd4dd7fb5 /lib/Checker/StackAddrLeakChecker.cpp | |
parent | b0cd34bda42ff639df54f30fa8ad5291ac0f1b1d (diff) |
We return Loc where we know.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106087 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker/StackAddrLeakChecker.cpp')
-rw-r--r-- | lib/Checker/StackAddrLeakChecker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Checker/StackAddrLeakChecker.cpp b/lib/Checker/StackAddrLeakChecker.cpp index 5e6058ddc2..ae410ed27d 100644 --- a/lib/Checker/StackAddrLeakChecker.cpp +++ b/lib/Checker/StackAddrLeakChecker.cpp @@ -133,8 +133,8 @@ void StackAddrLeakChecker::EvalEndPath(GREndPathNodeBuilder &B, void *tag, I != E; ++I) { if (VarDecl *VD = dyn_cast<VarDecl>(*I)) { const LocationContext *LCtx = B.getPredecessor()->getLocationContext(); - SVal L = state->getLValue(VD, LCtx); - SVal V = state->getSVal(cast<Loc>(L)); + Loc L = state->getLValue(VD, LCtx); + SVal V = state->getSVal(L); if (loc::MemRegionVal *RV = dyn_cast<loc::MemRegionVal>(&V)) { const MemRegion *R = RV->getRegion(); |