Fix big-endian codegen bug. We're splitting up
[oota-llvm.git] / lib / VMCore / Instruction.cpp
index b09ab93aa11d7885292a16d71486df9bf5ca1bfc..f33c1a23f2389c2c9e97844b00c6da88717114b2 100644 (file)
@@ -278,8 +278,7 @@ bool Instruction::isUsedOutsideOfBlock(const BasicBlock *BB) const {
       continue;
     }
     
-    unsigned UseOperand = UI.getOperandNo();
-    if (PN->getIncomingBlock(UseOperand/2) != BB)
+    if (PN->getIncomingBlock(UI) != BB)
       return true;
   }
   return false;