diff options
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(); |