[cfe-commits] r44508 - /cfe/trunk/CodeGen/CodeGenFunction.cpp
Chris Lattner
sabre at nondot.org
Sat Dec 1 22:32:26 PST 2007
Author: lattner
Date: Sun Dec 2 00:32:24 2007
New Revision: 44508
URL: http://llvm.org/viewvc/llvm-project?rev=44508&view=rev
Log:
remove the alloca insertion point inst, which is an internal helper.
Modified:
cfe/trunk/CodeGen/CodeGenFunction.cpp
Modified: cfe/trunk/CodeGen/CodeGenFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CodeGen/CodeGenFunction.cpp?rev=44508&r1=44507&r2=44508&view=diff
==============================================================================
--- cfe/trunk/CodeGen/CodeGenFunction.cpp (original)
+++ cfe/trunk/CodeGen/CodeGenFunction.cpp Sun Dec 2 00:32:24 2007
@@ -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));
}
More information about the cfe-commits
mailing list