r372945 - [analyzer] A speculative attempt to avoid gcc-7 crashes caused by r372942.
Artem Dergachev via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 26 00:01:31 PDT 2019
Author: dergachev
Date: Thu Sep 26 00:01:31 2019
New Revision: 372945
URL: http://llvm.org/viewvc/llvm-project?rev=372945&view=rev
Log:
[analyzer] A speculative attempt to avoid gcc-7 crashes caused by r372942.
Modified:
cfe/trunk/lib/StaticAnalyzer/Core/Store.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Core/Store.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/Store.cpp?rev=372945&r1=372944&r2=372945&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/Store.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/Store.cpp Thu Sep 26 00:01:31 2019
@@ -51,8 +51,11 @@ StoreRef StoreManager::enterStackFrame(S
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;
}
More information about the cfe-commits
mailing list