mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-09 13:33:17 +00:00
Use ulong instead of uint for size expressions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3744 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4900116ab0
commit
e102a64beb
@ -998,7 +998,6 @@ SetOperandsForMemInstr(vector<MachineInstr*>& mvec,
|
|||||||
&& "Array refs must be lowered before Instruction Selection");
|
&& "Array refs must be lowered before Instruction Selection");
|
||||||
|
|
||||||
Value* idxVal = idxVec[firstIdxIsZero];
|
Value* idxVal = idxVec[firstIdxIsZero];
|
||||||
assert(! isa<Constant>(idxVal) && "Need to sign-extend uint to 64b!");
|
|
||||||
|
|
||||||
vector<MachineInstr*> mulVec;
|
vector<MachineInstr*> mulVec;
|
||||||
Instruction* addr = new TmpInstruction(Type::UIntTy, memInst);
|
Instruction* addr = new TmpInstruction(Type::UIntTy, memInst);
|
||||||
@ -1012,7 +1011,7 @@ SetOperandsForMemInstr(vector<MachineInstr*>& mvec,
|
|||||||
/*AllowCompositeLeaf*/ true)
|
/*AllowCompositeLeaf*/ true)
|
||||||
: ptrType);
|
: ptrType);
|
||||||
const Type* eltType = cast<SequentialType>(vecType)->getElementType();
|
const Type* eltType = cast<SequentialType>(vecType)->getElementType();
|
||||||
ConstantUInt* eltSizeVal = ConstantUInt::get(Type::UIntTy,
|
ConstantUInt* eltSizeVal = ConstantUInt::get(Type::ULongTy,
|
||||||
target.DataLayout.getTypeSize(eltType));
|
target.DataLayout.getTypeSize(eltType));
|
||||||
|
|
||||||
// CreateMulInstruction() folds constants intelligently enough.
|
// CreateMulInstruction() folds constants intelligently enough.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user