Add bundle aware API for querying instruction properties and switch the code
[oota-llvm.git] / lib / Target / Sparc / SparcAsmPrinter.cpp
index deb39d9e2e7773feb2efad13e79f055067945fa3..7548bbf6ebe1d62f6d940dc69750f167f45b3309 100644 (file)
@@ -236,9 +236,9 @@ isBlockOnlyReachableByFallthrough(const MachineBasicBlock *MBB) const {
   
   // Check if the last terminator is an unconditional branch.
   MachineBasicBlock::const_iterator I = Pred->end();
-  while (I != Pred->begin() && !(--I)->getDesc().isTerminator())
+  while (I != Pred->begin() && !(--I)->isTerminator())
     ; // Noop
-  return I == Pred->end() || !I->getDesc().isBarrier();
+  return I == Pred->end() || !I->isBarrier();
 }