Fixed a bug in printing "cmp" pseudo ops.
[oota-llvm.git] / lib / Target / X86 / X86VZeroUpper.cpp
index 9bb54a826bd126c1880d3323157f7a939f686eb2..f8c30eb9b90e3f47b6e82a3e1674bbb350dc8303 100644 (file)
@@ -220,7 +220,7 @@ bool VZeroUpperInserter::processBasicBlock(MachineFunction &MF,
   for (MachineBasicBlock::iterator I = BB.begin(); I != BB.end(); ++I) {
     MachineInstr *MI = I;
     DebugLoc dl = I->getDebugLoc();
-    bool isControlFlow = MI->getDesc().isCall() || MI->getDesc().isReturn();
+    bool isControlFlow = MI->isCall() || MI->isReturn();
 
     // Shortcut: don't need to check regular instructions in dirty state. 
     if (!isControlFlow && CurState == ST_DIRTY)