use ArgOperand API
authorGabor Greif <ggreif@gmail.com>
Wed, 30 Jun 2010 13:03:37 +0000 (13:03 +0000)
committerGabor Greif <ggreif@gmail.com>
Wed, 30 Jun 2010 13:03:37 +0000 (13:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107280 91177308-0d34-0410-b5e6-96231b3b80d8

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;