summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-09-14 00:42:34 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-09-14 00:42:34 +0000
commit9efa1ce1457cd0ea90e3329ea29b03f6b6ec5269 (patch)
tree974065f491112abb339654f2a214c89377872dbe /clang/lib/CodeGen/CodeGenFunction.h
parent2967e28ee7ba585067f23e309c976d38ebd8699c (diff)
downloadbcm5719-llvm-9efa1ce1457cd0ea90e3329ea29b03f6b6ec5269.tar.gz
bcm5719-llvm-9efa1ce1457cd0ea90e3329ea29b03f6b6ec5269.zip
Fix VLA miscompilation.
llvm.stacksave/llvm.stackrestore wasn't emitted for VLAs in inner scopes. Fixes r8403108. llvm-svn: 113822
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index 37795ed5db7..acf1e4d7b3a 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/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
OpenPOWER on IntegriCloud