summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-04-25 23:52:27 +0000
committerDevang Patel <dpatel@apple.com>2011-04-25 23:52:27 +0000
commit420c8de92ec04e30b5c5a69d315675a78ddaacb2 (patch)
treedeade6f5ff82776e23afe637757ffb46c69441ed /clang/lib/CodeGen/CGDebugInfo.cpp
parent83da03c2abfb8d5fc418538949ec08d1aec71a95 (diff)
downloadbcm5719-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.cpp2
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));
OpenPOWER on IntegriCloud