Removed unneeded code for break/continue statements in

manufactured for-loop per Anders feedback (thanks).

- Fariborz

llvm-svn: 79466
This commit is contained in:
Fariborz Jahanian 2009-08-19 21:10:38 +00:00
parent 0e04394d97
commit a8fe2c26a8
1 changed files with 0 additions and 7 deletions

View File

@ -375,10 +375,6 @@ CodeGenFunction::EmitCXXAggrConstructorCall(const CXXConstructorDecl *D,
llvm::BasicBlock *ContinueBlock = createBasicBlock("for.inc");
// Store the blocks to use for break and continue.
// FIXME. Is this needed?
BreakContinueStack.push_back(BreakContinue(AfterFor, ContinueBlock));
// Inside the loop body, emit the constructor call on the array element.
Counter = Builder.CreateLoad(IndexPtr);
llvm::Value *Address = Builder.CreateInBoundsGEP(This, Counter, "arrayidx");
@ -390,9 +386,6 @@ CodeGenFunction::EmitCXXAggrConstructorCall(const CXXConstructorDecl *D,
else
EmitCXXConstructorCall(D, Ctor_Complete, Address, 0, 0);
// FIXME. Do we need this?
BreakContinueStack.pop_back();
EmitBlock(ContinueBlock);
// Emit the increment of the loop counter.