From: Chris Lattner Date: Sun, 2 Dec 2007 06:32:24 +0000 (+0000) Subject: remove the alloca insertion point inst, which is an internal helper. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5a2fa14860813a8b93f68a84063dd20c690f045a;p=clang remove the alloca insertion point inst, which is an internal helper. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44508 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/CodeGen/CodeGenFunction.cpp b/CodeGen/CodeGenFunction.cpp index 190da77b2b..aa9d2c6054 100644 --- a/CodeGen/CodeGenFunction.cpp +++ b/CodeGen/CodeGenFunction.cpp @@ -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)); }