Explicitly pass in debug location information to BuildMI.
[oota-llvm.git] / lib / CodeGen / GCStrategy.cpp
index 96b81226bd9f51dedeb2e303d075813d4b054e00..b851c074c218f68d7ab53561713bb8ec310c6e5e 100644 (file)
@@ -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;
 }