mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-14 15:28:20 +00:00
use getArgOperand (corrected by CallInst::ArgOffset) instead of getOperand
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107273 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -548,7 +548,8 @@ protected:
|
|||||||
CI->eraseFromParent();
|
CI->eraseFromParent();
|
||||||
}
|
}
|
||||||
bool isFoldable(unsigned SizeCIOp, unsigned, bool) const {
|
bool isFoldable(unsigned SizeCIOp, unsigned, bool) const {
|
||||||
if (ConstantInt *SizeCI = dyn_cast<ConstantInt>(CI->getOperand(SizeCIOp)))
|
if (ConstantInt *SizeCI = dyn_cast<ConstantInt>(CI->getArgOperand(SizeCIOp
|
||||||
|
- CallInst::ArgOffset)))
|
||||||
return SizeCI->isAllOnesValue();
|
return SizeCI->isAllOnesValue();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user