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 | e0aa94771e0fe8325b30b0f3f2b5a6b63189f4c2 (patch) | |
tree | 2c2cd67224f65cb759215957690155729ab4d6da /lib/StaticAnalyzer | |
parent | d09bf7265cb62f0d01eb4b685ac0b326ff189632 (diff) | |
download | clang-e0aa94771e0fe8325b30b0f3f2b5a6b63189f4c2.tar.gz |
Revert "[analyzer] A speculative attempt to avoid gcc-7 crashes..."
This reverts commit r372940 which was an overreaction to a flaky buildbot.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@373005 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer')
-rw-r--r-- | lib/StaticAnalyzer/Core/Store.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/StaticAnalyzer/Core/Store.cpp b/lib/StaticAnalyzer/Core/Store.cpp index 5276789d20..b4ab687772 100644 --- a/lib/StaticAnalyzer/Core/Store.cpp +++ b/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; } |