summaryrefslogtreecommitdiff
path: root/lib/CodeGen/GCStrategy.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-02-03 02:29:34 +0000
committerBill Wendling <isanbard@gmail.com>2009-02-03 02:29:34 +0000
commitd62e06c53b8b7e555617dc9b24b98c007d63de5d (patch)
tree14176201b81fc2a07e8df8d05dcaa73c46514f74 /lib/CodeGen/GCStrategy.cpp
parent6a8a0d74cb73956a9452943d4d4102ebede1f69e (diff)
downloadllvm-d62e06c53b8b7e555617dc9b24b98c007d63de5d.tar.gz
llvm-d62e06c53b8b7e555617dc9b24b98c007d63de5d.tar.bz2
llvm-d62e06c53b8b7e555617dc9b24b98c007d63de5d.tar.xz
Explicitly pass in debug location information to BuildMI.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63599 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/GCStrategy.cpp')
-rw-r--r--lib/CodeGen/GCStrategy.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/GCStrategy.cpp b/lib/CodeGen/GCStrategy.cpp
index 96b81226bd..b851c074c2 100644
--- a/lib/CodeGen/GCStrategy.cpp
+++ b/lib/CodeGen/GCStrategy.cpp
@@ -329,7 +329,8 @@ void MachineCodeAnalysis::getAnalysisUsage(AnalysisUsage &AU) const {
unsigned MachineCodeAnalysis::InsertLabel(MachineBasicBlock &MBB,
MachineBasicBlock::iterator MI) const {
unsigned Label = MMI->NextLabelID();
- BuildMI(MBB, MI, TII->get(TargetInstrInfo::GC_LABEL)).addImm(Label);
+ BuildMI(MBB, MI, MI->getDebugLoc(),
+ TII->get(TargetInstrInfo::GC_LABEL)).addImm(Label);
return Label;
}