aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-12-02 06:32:24 +0000
committerChris Lattner <sabre@nondot.org>2007-12-02 06:32:24 +0000
commit5a2fa14860813a8b93f68a84063dd20c690f045a (patch)
tree4416df60d582e1b7fcc98eed0ea666585247171f
parentfafad83da6eff6bf090f6eb2dc1019ace7473f38 (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.cpp4
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));
}