Add bundle aware API for querying instruction properties and switch the code
[oota-llvm.git] / lib / Target / X86 / X86FrameLowering.cpp
index f8371e000d523dbac84f5419f6f38dc1754cb063..158acc90c107fc4967055118153715851e3a0343 100644 (file)
@@ -991,7 +991,7 @@ void X86FrameLowering::emitEpilogue(MachineFunction &MF,
     unsigned Opc = PI->getOpcode();
 
     if (Opc != X86::POP32r && Opc != X86::POP64r && Opc != X86::DBG_VALUE &&
-        !PI->getDesc().isTerminator())
+        !PI->isTerminator())
       break;
 
     --MBBI;