Get rid of 3 non-DebugLoc getNode variants.
[oota-llvm.git] / lib / CodeGen / GCStrategy.cpp
index b851c074c218f68d7ab53561713bb8ec310c6e5e..3ec368fe73c8dd3733c6758acf2fd27a047830f9 100644 (file)
@@ -329,6 +329,7 @@ void MachineCodeAnalysis::getAnalysisUsage(AnalysisUsage &AU) const {
 unsigned MachineCodeAnalysis::InsertLabel(MachineBasicBlock &MBB, 
                                      MachineBasicBlock::iterator MI) const {
   unsigned Label = MMI->NextLabelID();
+  // N.B. we assume that MI is *not* equal to the "end()" iterator.
   BuildMI(MBB, MI, MI->getDebugLoc(),
           TII->get(TargetInstrInfo::GC_LABEL)).addImm(Label);
   return Label;