remove the alloca insertion point inst, which is an internal helper.
llvm-svn: 44508
diff --git a/clang/CodeGen/CodeGenFunction.cpp b/clang/CodeGen/CodeGenFunction.cpp
index 190da77..aa9d2c6 100644
--- a/clang/CodeGen/CodeGenFunction.cpp
+++ b/clang/CodeGen/CodeGenFunction.cpp
@@ -145,6 +145,10 @@
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));
}