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; } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits