mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 17:29:19 +00:00
use ArgOperand API
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107280 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
37387d5288
commit
e1c2b9cc3d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user