diff options
author | Artem Dergachev <artem.dergachev@gmail.com> | 2019-09-26 18:52:00 +0000 |
---|---|---|
committer | Artem Dergachev <artem.dergachev@gmail.com> | 2019-09-26 18:52:00 +0000 |
commit | 214f68e7a15dced5b7966ee2933993400a1b189f (patch) | |
tree | 5c2788b2d3556264426eb5c8c1da7dc46d58f742 | |
parent | e440d23195f772d5f8186fdd7a0c08808f432a94 (diff) | |
download | bcm5719-llvm-214f68e7a15dced5b7966ee2933993400a1b189f.tar.gz bcm5719-llvm-214f68e7a15dced5b7966ee2933993400a1b189f.zip |
Revert "[analyzer] A speculative attempt to avoid gcc-7 crashes..."
This reverts commit r372940 which was an overreaction to a flaky buildbot.
llvm-svn: 373005
-rw-r--r-- | clang/lib/StaticAnalyzer/Core/Store.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/Store.cpp b/clang/lib/StaticAnalyzer/Core/Store.cpp index 5276789d207..b4ab6877726 100644 --- a/clang/lib/StaticAnalyzer/Core/Store.cpp +++ b/clang/lib/StaticAnalyzer/Core/Store.cpp @@ -51,11 +51,8 @@ StoreRef StoreManager::enterStackFrame(Store OldStore, SmallVector<CallEvent::FrameBindingTy, 16> InitialBindings; Call.getInitialStackFrameContents(LCtx, InitialBindings); - for (const auto &I : InitialBindings) { - Loc L = I.first.castAs<Loc>(); - SVal V = I.second; - Store = Bind(Store.getStore(), L, V); - } + for (const auto &I : InitialBindings) + Store = Bind(Store.getStore(), I.first.castAs<Loc>(), I.second); return Store; } |