summaryrefslogtreecommitdiffstats
path: root/clang/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
commit33747b6c41bdde751a237108bb6774acdedb2ff8 (patch)
tree7f4fb7b1bc075de813a88761d0588af4b6f8ce7d /clang/lib/CodeGen/CGObjC.cpp
parenta84522088fb36b1a22cf794dd9081a715a2e0f0e (diff)
downloadbcm5719-llvm-33747b6c41bdde751a237108bb6774acdedb2ff8.tar.gz
bcm5719-llvm-33747b6c41bdde751a237108bb6774acdedb2ff8.zip
Start removing the old Obj-C EH stack now that the cleanup stack is used instead.
llvm-svn: 64203
Diffstat (limited to 'clang/lib/CodeGen/CGObjC.cpp')
-rw-r--r--clang/lib/CodeGen/CGObjC.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/clang/lib/CodeGen/CGObjC.cpp b/clang/lib/CodeGen/CGObjC.cpp
index efd9299d1a0..9adcc358f86 100644
--- a/clang/lib/CodeGen/CGObjC.cpp
+++ b/clang/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());
OpenPOWER on IntegriCloud