mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-14 07:09:08 +00:00
Use ulong instead of uint for size expressions.
llvm-svn: 3744
This commit is contained in:
parent
59b3b6c07b
commit
d43591bbc5
@ -998,7 +998,6 @@ SetOperandsForMemInstr(vector<MachineInstr*>& mvec,
|
||||
&& "Array refs must be lowered before Instruction Selection");
|
||||
|
||||
Value* idxVal = idxVec[firstIdxIsZero];
|
||||
assert(! isa<Constant>(idxVal) && "Need to sign-extend uint to 64b!");
|
||||
|
||||
vector<MachineInstr*> mulVec;
|
||||
Instruction* addr = new TmpInstruction(Type::UIntTy, memInst);
|
||||
@ -1012,7 +1011,7 @@ SetOperandsForMemInstr(vector<MachineInstr*>& mvec,
|
||||
/*AllowCompositeLeaf*/ true)
|
||||
: ptrType);
|
||||
const Type* eltType = cast<SequentialType>(vecType)->getElementType();
|
||||
ConstantUInt* eltSizeVal = ConstantUInt::get(Type::UIntTy,
|
||||
ConstantUInt* eltSizeVal = ConstantUInt::get(Type::ULongTy,
|
||||
target.DataLayout.getTypeSize(eltType));
|
||||
|
||||
// CreateMulInstruction() folds constants intelligently enough.
|
||||
|
Loading…
Reference in New Issue
Block a user