mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-08 19:25:47 +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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user