aboutsummaryrefslogtreecommitdiff
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
commit50811d2e8939d3dc79f1ce30985c7cfcb17eda19 (patch)
treea7a8425ebc556985dd4785a25d057d156a8bac0e
parentdf39fa2811933737974862ad376f140e4cdfeee1 (diff)
Emit intrinsic at current insert point, not at the end of current block.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130177 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/CGDebugInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp
index a90237cb32..29f9b9e8aa 100644
--- a/lib/CodeGen/CGDebugInfo.cpp
+++ b/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));