diff options
author | Chris Lattner <sabre@nondot.org> | 2007-12-02 06:32:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-12-02 06:32:24 +0000 |
commit | 5a2fa14860813a8b93f68a84063dd20c690f045a (patch) | |
tree | 4416df60d582e1b7fcc98eed0ea666585247171f | |
parent | fafad83da6eff6bf090f6eb2dc1019ace7473f38 (diff) |
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
-rw-r--r-- | CodeGen/CodeGenFunction.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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)); } |