From: Vikram S. Adve Date: Mon, 16 Sep 2002 15:56:45 +0000 (+0000) Subject: Use ulong instead of uint for size expressions. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e102a64beb3d9a5076d8b5d8aea4604e6b86751a;p=oota-llvm.git 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 --- diff --git a/lib/Target/SparcV9/SparcV9InstrSelection.cpp b/lib/Target/SparcV9/SparcV9InstrSelection.cpp index ce7e4dc0d92..7bdf716cac0 100644 --- a/lib/Target/SparcV9/SparcV9InstrSelection.cpp +++ b/lib/Target/SparcV9/SparcV9InstrSelection.cpp @@ -998,7 +998,6 @@ SetOperandsForMemInstr(vector& mvec, && "Array refs must be lowered before Instruction Selection"); Value* idxVal = idxVec[firstIdxIsZero]; - assert(! isa(idxVal) && "Need to sign-extend uint to 64b!"); vector mulVec; Instruction* addr = new TmpInstruction(Type::UIntTy, memInst); @@ -1012,7 +1011,7 @@ SetOperandsForMemInstr(vector& mvec, /*AllowCompositeLeaf*/ true) : ptrType); const Type* eltType = cast(vecType)->getElementType(); - ConstantUInt* eltSizeVal = ConstantUInt::get(Type::UIntTy, + ConstantUInt* eltSizeVal = ConstantUInt::get(Type::ULongTy, target.DataLayout.getTypeSize(eltType)); // CreateMulInstruction() folds constants intelligently enough.