summaryrefslogtreecommitdiffstats
path: root/clang/CodeGen/CodeGenFunction.cpp
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
commitc48023bd5b648252b1d504452cb2cd09818c7813 (patch)
treed7e7dc8f9da09da8285000166cae8da4744234a2 /clang/CodeGen/CodeGenFunction.cpp
parent6d27513f6ef02868752373db749b5d631ab0c2b1 (diff)
downloadbcm5719-llvm-c48023bd5b648252b1d504452cb2cd09818c7813.tar.gz
bcm5719-llvm-c48023bd5b648252b1d504452cb2cd09818c7813.zip
remove the alloca insertion point inst, which is an internal helper.
llvm-svn: 44508
Diffstat (limited to 'clang/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/CodeGen/CodeGenFunction.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/CodeGen/CodeGenFunction.cpp b/clang/CodeGen/CodeGenFunction.cpp
index 190da77b2b7..aa9d2c6054a 100644
--- a/clang/CodeGen/CodeGenFunction.cpp
+++ b/clang/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));
}
OpenPOWER on IntegriCloud