remove the alloca insertion point inst, which is an internal helper.

llvm-svn: 44508
This commit is contained in:
Chris Lattner 2007-12-02 06:32:24 +00:00
parent 6d27513f6e
commit c48023bd5b
1 changed files with 4 additions and 0 deletions

View File

@ -145,6 +145,10 @@ void CodeGenFunction::GenerateCode(const FunctionDecl *FD) {
assert(BreakContinueStack.empty() &&
"mismatched push/pop in break/continue stack!");
// Remove the AllocaInsertPt instruction, which is just a convenience for us.
AllocaInsertPt->eraseFromParent();
AllocaInsertPt = 0;
// Verify that the function is well formed.
assert(!verifyFunction(*CurFn));
}