Skip to content

Commit 214f68e

Browse files
committed
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
1 parent e440d23 commit 214f68e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

clang/lib/StaticAnalyzer/Core/Store.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,8 @@ StoreRef StoreManager::enterStackFrame(Store OldStore,
5151
SmallVector<CallEvent::FrameBindingTy, 16> InitialBindings;
5252
Call.getInitialStackFrameContents(LCtx, InitialBindings);
5353

54-
for (const auto &I : InitialBindings) {
55-
Loc L = I.first.castAs<Loc>();
56-
SVal V = I.second;
57-
Store = Bind(Store.getStore(), L, V);
58-
}
54+
for (const auto &I : InitialBindings)
55+
Store = Bind(Store.getStore(), I.first.castAs<Loc>(), I.second);
5956

6057
return Store;
6158
}

0 commit comments

Comments
 (0)