diff options
author | Devang Patel <dpatel@apple.com> | 2011-04-25 23:52:27 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-04-25 23:52:27 +0000 |
commit | 420c8de92ec04e30b5c5a69d315675a78ddaacb2 (patch) | |
tree | deade6f5ff82776e23afe637757ffb46c69441ed /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | 83da03c2abfb8d5fc418538949ec08d1aec71a95 (diff) | |
download | bcm5719-llvm-420c8de92ec04e30b5c5a69d315675a78ddaacb2.tar.gz bcm5719-llvm-420c8de92ec04e30b5c5a69d315675a78ddaacb2.zip |
Emit intrinsic at current insert point, not at the end of current block.
llvm-svn: 130177
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index a90237cb323..29f9b9e8aa0 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -2027,7 +2027,7 @@ void CGDebugInfo::EmitDeclareOfBlockDeclRefVariable( VD->getName(), Unit, Line, Ty, addr); // Insert an llvm.dbg.declare into the current block. llvm::Instruction *Call = - DBuilder.insertDeclare(Storage, D, Builder.GetInsertBlock()); + DBuilder.insertDeclare(Storage, D, Builder.GetInsertPoint()); llvm::MDNode *Scope = RegionStack.back(); Call->setDebugLoc(llvm::DebugLoc::get(Line, Column, Scope)); |