[llvm-commits] [llvm] r107280 - /llvm/trunk/lib/Target/X86/X86ISelLowering.cpp

Gabor Greif ggreif at gmail.com
Wed Jun 30 06:03:38 PDT 2010


Author: ggreif
Date: Wed Jun 30 08:03:37 2010
New Revision: 107280

URL: http://llvm.org/viewvc/llvm-project?rev=107280&view=rev
Log:
use ArgOperand API

Modified:
    llvm/trunk/lib/Target/X86/X86ISelLowering.cpp

Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=107280&r1=107279&r2=107280&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Wed Jun 30 08:03:37 2010
@@ -10022,7 +10022,7 @@
   // 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;





More information about the llvm-commits mailing list