summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/lib/StaticAnalyzer/Core/Store.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/Store.cpp b/clang/lib/StaticAnalyzer/Core/Store.cpp
index b4ab6877726..5276789d207 100644
--- a/clang/lib/StaticAnalyzer/Core/Store.cpp
+++ b/clang/lib/StaticAnalyzer/Core/Store.cpp
@@ -51,8 +51,11 @@ StoreRef StoreManager::enterStackFrame(Store OldStore,
SmallVector<CallEvent::FrameBindingTy, 16> InitialBindings;
Call.getInitialStackFrameContents(LCtx, InitialBindings);
- for (const auto &I : InitialBindings)
- Store = Bind(Store.getStore(), I.first.castAs<Loc>(), I.second);
+ for (const auto &I : InitialBindings) {
+ Loc L = I.first.castAs<Loc>();
+ SVal V = I.second;
+ Store = Bind(Store.getStore(), L, V);
+ }
return Store;
}
OpenPOWER on IntegriCloud