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 | 2739d2bbe68efae3416b80294d8477c732105872 (patch) | |
tree | 52769ff51cb29588097b549d67239eacce4392bb /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | f72ce6ea8b056f8d137b6ab291fae3cf2967b684 (diff) | |
download | bcm5719-llvm-2739d2bbe68efae3416b80294d8477c732105872.tar.gz bcm5719-llvm-2739d2bbe68efae3416b80294d8477c732105872.zip |
remove some obsolete comments, use an AssertingVH.
llvm-svn: 68151
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index 68d10ff56ed..dc00a76ff91 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/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, |