ScheduleDAGInstrs: Move LiveIntervals field to ScheduleDAGMI
[oota-llvm.git] / lib / CodeGen / CriticalAntiDepBreaker.cpp
index 07e534238653f66b5a28df87a37772e5c4163493..c924ba30c8a11b54a4f1df39cc749f2493f1ec4b 100644 (file)
@@ -52,7 +52,7 @@ void CriticalAntiDepBreaker::StartBlock(MachineBasicBlock *BB) {
   // Clear "do not change" set.
   KeepRegs.reset();
 
-  bool IsReturnBlock = (BBSize != 0 && BB->back().isReturn());
+  bool IsReturnBlock = BB->isReturnBlock();
 
   // Examine the live-in regs of all successors.
   for (MachineBasicBlock::succ_iterator SI = BB->succ_begin(),