diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-09-14 00:42:34 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-09-14 00:42:34 +0000 |
commit | 4ada2ca7d82dab68d3646f3eb6dcdfee072e8ea4 (patch) | |
tree | cdc1b145e91170c4a18d5c5466390e905c5c8321 /lib/CodeGen/CodeGenFunction.h | |
parent | 1f6206ed21e026ca7ddaf0bff9599c476301a695 (diff) |
Fix VLA miscompilation.
llvm.stacksave/llvm.stackrestore wasn't emitted for VLAs in inner scopes.
Fixes r8403108.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113822 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 37795ed5db..acf1e4d7b3 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -562,6 +562,7 @@ public: { CleanupStackDepth = CGF.EHStack.stable_begin(); OldDidCallStackSave = CGF.DidCallStackSave; + CGF.DidCallStackSave = false; } /// \brief Exit this cleanup scope, emitting any accumulated |