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 | abd60dd1fc2c4b6d02fdd54a6f749c872c0b041b (patch) | |
| tree | e6ff2477bad799a8d3a0e7c46674b571059b29d7 /clang/lib/Checker | |
| parent | 7880db8a8917eab01ab9c80fe3ef2deecd4a93f2 (diff) | |
| download | bcm5719-llvm-abd60dd1fc2c4b6d02fdd54a6f749c872c0b041b.tar.gz bcm5719-llvm-abd60dd1fc2c4b6d02fdd54a6f749c872c0b041b.zip | |
We return Loc where we know.
llvm-svn: 106087
Diffstat (limited to 'clang/lib/Checker')
| -rw-r--r-- | clang/lib/Checker/StackAddrLeakChecker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Checker/StackAddrLeakChecker.cpp b/clang/lib/Checker/StackAddrLeakChecker.cpp index 5e6058ddc2e..ae410ed27d2 100644 --- a/clang/lib/Checker/StackAddrLeakChecker.cpp +++ b/clang/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(); |

