forked from OSchip/llvm-project
Make sure to reset the DidCallStackSave variable before emitting a compound statement. Fixes PR3649.
llvm-svn: 65291
This commit is contained in:
parent
0773533b27
commit
e14282e274
|
@ -134,6 +134,7 @@ RValue CodeGenFunction::EmitCompoundStmt(const CompoundStmt &S, bool GetLast,
|
||||||
// Keep track of the current cleanup stack depth.
|
// Keep track of the current cleanup stack depth.
|
||||||
size_t CleanupStackDepth = CleanupEntries.size();
|
size_t CleanupStackDepth = CleanupEntries.size();
|
||||||
bool OldDidCallStackSave = DidCallStackSave;
|
bool OldDidCallStackSave = DidCallStackSave;
|
||||||
|
DidCallStackSave = false;
|
||||||
|
|
||||||
for (CompoundStmt::const_body_iterator I = S.body_begin(),
|
for (CompoundStmt::const_body_iterator I = S.body_begin(),
|
||||||
E = S.body_end()-GetLast; I != E; ++I)
|
E = S.body_end()-GetLast; I != E; ++I)
|
||||||
|
|
Loading…
Reference in New Issue