aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGObjC.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-02-10 05:52:02 +0000
committerAnders Carlsson <andersca@mac.com>2009-02-10 05:52:02 +0000
commite4b6d342c29d5cb9d311756100df1603810fa892 (patch)
tree68bc60fb94758a64604e0a42db5ded00e1406269 /lib/CodeGen/CGObjC.cpp
parent3f34d80d0c4d7d3350b3eed3b80a9333663bb283 (diff)
Start removing the old Obj-C EH stack now that the cleanup stack is used instead.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64203 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjC.cpp')
-rw-r--r--lib/CodeGen/CGObjC.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/CodeGen/CGObjC.cpp b/lib/CodeGen/CGObjC.cpp
index efd9299d1a..9adcc358f8 100644
--- a/lib/CodeGen/CGObjC.cpp
+++ b/lib/CodeGen/CGObjC.cpp
@@ -361,11 +361,6 @@ void CodeGenFunction::EmitObjCForCollectionStmt(const ObjCForCollectionStmt &S)
return;
}
- // We want to ensure that any vlas between here and when we
- // push the break and continue context below can be destroyed
- // when we break
- llvm::Value *saveBreakStackDepth = StackDepth;
-
if (const DeclStmt *SD = dyn_cast<DeclStmt>(S.getElement())) {
EmitStmt(SD);
assert(HaveInsertPoint() && "DeclStmt destroyed insert point!");
@@ -520,8 +515,7 @@ void CodeGenFunction::EmitObjCForCollectionStmt(const ObjCForCollectionStmt &S)
llvm::BasicBlock *LoopEnd = createBasicBlock("loopend");
llvm::BasicBlock *AfterBody = createBasicBlock("afterbody");
- // Ensure any vlas created between there and here, are undone
- BreakContinuePush(LoopEnd, AfterBody, saveBreakStackDepth, StackDepth);
+ BreakContinueStack.push_back(BreakContinue(LoopEnd, AfterBody));
EmitStmt(S.getBody());