aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-02-07 18:08:12 +0000
committerMike Stump <mrs@apple.com>2009-02-07 18:08:12 +0000
commit72cac2ccce8058833f56358e3391e28a8ddeeaa4 (patch)
tree4b39ee1fe10e1956ca50f5725cf95265f19d946f /lib/CodeGen/CodeGenFunction.h
parent16b16206741f5139c4ad870632db8f9ea4c6c943 (diff)
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
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r--lib/CodeGen/CodeGenFunction.h5
1 files changed, 4 insertions, 1 deletions
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<const LabelStmt*, llvm::BasicBlock*> 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()));