summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-06-30 13:03:37 +0000
committerGabor Greif <ggreif@gmail.com>2010-06-30 13:03:37 +0000
commit12ca3d9facecd2972f8f1ea46356cdcf527dfaeb (patch)
treeb04a3b57dea03859fe1bcaac51f9819bf36a5793
parentf69acfe133e6ab557e91501afe0811e734558aa8 (diff)
downloadbcm5719-llvm-12ca3d9facecd2972f8f1ea46356cdcf527dfaeb.tar.gz
bcm5719-llvm-12ca3d9facecd2972f8f1ea46356cdcf527dfaeb.zip
use ArgOperand API
llvm-svn: 107280
-rw-r--r--llvm/lib/Target/X86/X86ISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 98f03a294c8..f1933349cbe 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -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;
OpenPOWER on IntegriCloud