From 36a2ada69fdb457b0e46d0ef452c150b360d8888 Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Sat, 7 Feb 2009 12:52:26 +0000 Subject: Fixup goto codegen in and around VLAs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64014 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGDecl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/CodeGen/CGDecl.cpp') diff --git a/lib/CodeGen/CGDecl.cpp b/lib/CodeGen/CGDecl.cpp index 73d3e2103c..3162c2f480 100644 --- a/lib/CodeGen/CGDecl.cpp +++ b/lib/CodeGen/CGDecl.cpp @@ -188,7 +188,7 @@ void CodeGenFunction::EmitLocalBlockVarDecl(const VarDecl &D) { Builder.CreateStore(V, Stack); - StackSaveValues.back() = Stack; + StackSaveValues.back() = StackDepth = Stack; } // Get the element type. const llvm::Type *LElemTy = ConvertType(Ty); -- cgit v1.2.3