Add bundle aware API for querying instruction properties and switch the code
[oota-llvm.git] / lib / CodeGen / DeadMachineInstructionElim.cpp
index 6de6c0cb81bdd906a8621c326ed352e4dfa389da..ba135e19f4d219adf973151640aed1f815ac469f 100644 (file)
@@ -102,7 +102,7 @@ bool DeadMachineInstructionElim::runOnMachineFunction(MachineFunction &MF) {
     LivePhysRegs = ReservedRegs;
 
     // Also add any explicit live-out physregs for this block.
-    if (!MBB->empty() && MBB->back().getDesc().isReturn())
+    if (!MBB->empty() && MBB->back().isReturn())
       for (MachineRegisterInfo::liveout_iterator LOI = MRI->liveout_begin(),
            LOE = MRI->liveout_end(); LOI != LOE; ++LOI) {
         unsigned Reg = *LOI;