From 72cac2ccce8058833f56358e3391e28a8ddeeaa4 Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Sat, 7 Feb 2009 18:08:12 +0000 Subject: Arrange to have the correct StackDepth for while statements. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64021 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenFunction.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/CodeGen/CodeGenFunction.h') diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 90b0bf45fe..1a251d1363 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -151,7 +151,10 @@ private: /// LabelMap - This keeps track of the LLVM basic block for each C label. llvm::DenseMap LabelMap; - /// BreakContinuePush - Note a new break and continue level. + /// BreakContinuePush - Note a new break and continue level. This + /// must be called at the stack depth of the continue block. In + /// particular, this must not be called after the controlling + /// condition has possibly started a vla. void BreakContinuePush(llvm::BasicBlock *bb, llvm::BasicBlock *cb) { BreakContinueStack.push_back(BreakContinue(bb, cb, StackDepth, ObjCEHStack.size())); -- cgit v1.2.3