Add bundle aware API for querying instruction properties and switch the code
[oota-llvm.git] / lib / Target / ARM / ARMFastISel.cpp
index de366f7bc8f5c980531dc66fc466b0bd950956cc..d3ebf36b28eb90c6c4efee940bd8a983c47bd91a 100644 (file)
@@ -228,8 +228,7 @@ class ARMFastISel : public FastISel {
 // we don't care about implicit defs here, just places we'll need to add a
 // default CCReg argument. Sets CPSR if we're setting CPSR instead of CCR.
 bool ARMFastISel::DefinesOptionalPredicate(MachineInstr *MI, bool *CPSR) {
-  const MCInstrDesc &MCID = MI->getDesc();
-  if (!MCID.hasOptionalDef())
+  if (!MI->hasOptionalDef())
     return false;
 
   // Look to see if our OptionalDef is defining CPSR or CCR.