From 8e27d79e3de4bce573acd8b8c669bea0d28e7af8 Mon Sep 17 00:00:00 2001 From: Artem Dergachev Date: Thu, 26 Sep 2019 07:01:31 +0000 Subject: [PATCH] [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 --- lib/StaticAnalyzer/Core/Store.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; } -- 2.50.1