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