diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-31 22:17:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-31 22:17:44 +0000 |
commit | 481769b5dc102b0256b35581e787909ad5edfab5 (patch) | |
tree | 7805d01be92ac37b59ccba269c9e7544cde6969d /lib/CodeGen/CodeGenFunction.cpp | |
parent | 91e28afe3503893c69afd71877f11e3bf03fa4ce (diff) |
remove some obsolete comments, use an AssertingVH.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68151 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index 68d10ff56e..dc00a76ff9 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/lib/CodeGen/CodeGenFunction.cpp @@ -133,8 +133,9 @@ void CodeGenFunction::FinishFunction(SourceLocation EndLoc) { EmitFunctionEpilog(*CurFnInfo, ReturnValue); // Remove the AllocaInsertPt instruction, which is just a convenience for us. - AllocaInsertPt->eraseFromParent(); + llvm::Instruction *Ptr = AllocaInsertPt; AllocaInsertPt = 0; + Ptr->eraseFromParent(); } void CodeGenFunction::StartFunction(const Decl *D, QualType RetTy, |