mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 18:29:46 +00:00
Make this code 65-bit clean.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114828 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
640e74207e
commit
e0214d5b19
@ -899,7 +899,7 @@ void AllocaInst::setAlignment(unsigned Align) {
|
|||||||
|
|
||||||
bool AllocaInst::isArrayAllocation() const {
|
bool AllocaInst::isArrayAllocation() const {
|
||||||
if (ConstantInt *CI = dyn_cast<ConstantInt>(getOperand(0)))
|
if (ConstantInt *CI = dyn_cast<ConstantInt>(getOperand(0)))
|
||||||
return CI->getZExtValue() != 1;
|
return !CI->isOne();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user