From: Artem Dergachev Date: Thu, 26 Sep 2019 18:52:00 +0000 (+0000) Subject: Revert "[analyzer] A speculative attempt to avoid gcc-7 crashes..." X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e0aa94771e0fe8325b30b0f3f2b5a6b63189f4c2;p=clang Revert "[analyzer] A speculative attempt to avoid gcc-7 crashes..." This reverts commit r372940 which was an overreaction to a flaky buildbot. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@373005 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/StaticAnalyzer/Core/Store.cpp b/lib/StaticAnalyzer/Core/Store.cpp index 5276789d20..b4ab687772 100644 --- a/lib/StaticAnalyzer/Core/Store.cpp +++ b/lib/StaticAnalyzer/Core/Store.cpp @@ -51,11 +51,8 @@ StoreRef StoreManager::enterStackFrame(Store OldStore, SmallVector InitialBindings; Call.getInitialStackFrameContents(LCtx, InitialBindings); - for (const auto &I : InitialBindings) { - Loc L = I.first.castAs(); - SVal V = I.second; - Store = Bind(Store.getStore(), L, V); - } + for (const auto &I : InitialBindings) + Store = Bind(Store.getStore(), I.first.castAs(), I.second); return Store; }