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 190da77..aa9d2c6 100644
--- a/CodeGen/CodeGenFunction.cpp
+++ b/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));
 }