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