use ArgOperand API
[oota-llvm.git] / lib / Target / X86 / X86ISelLowering.cpp
index 98f03a294c86fab344b52ce353b5dcd8866724e4..f1933349cbeab9100902cdd6904ba3fef77d771a 100644 (file)
@@ -10022,7 +10022,7 @@ static bool LowerToBSwap(CallInst *CI) {
   // so don't worry about this.
 
   // Verify this is a simple bswap.
-  if (CI->getNumOperands() != 2 ||
+  if (CI->getNumArgOperands() != 1 ||
       CI->getType() != CI->getArgOperand(0)->getType() ||
       !CI->getType()->isIntegerTy())
     return false;