]> granicus.if.org Git - clang/commitdiff
remove the alloca insertion point inst, which is an internal helper.
authorChris Lattner <sabre@nondot.org>
Sun, 2 Dec 2007 06:32:24 +0000 (06:32 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 2 Dec 2007 06:32:24 +0000 (06:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44508 91177308-0d34-0410-b5e6-96231b3b80d8

CodeGen/CodeGenFunction.cpp

index 190da77b2b7f5b926973bc000ab54239f26d5b70..aa9d2c6054a9b47c60c0dd91e5fe4b3a1a5f3aa4 100644 (file)
@@ -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));
 }