diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-09-16 15:56:45 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-09-16 15:56:45 +0000 |
commit | e102a64beb3d9a5076d8b5d8aea4604e6b86751a (patch) | |
tree | 37330de398c8ad906ab4ed65a135e04096a5afd4 /lib | |
parent | 4900116ab0c17252bdca2e66b87d8b6da1839b54 (diff) | |
download | external_llvm-e102a64beb3d9a5076d8b5d8aea4604e6b86751a.zip external_llvm-e102a64beb3d9a5076d8b5d8aea4604e6b86751a.tar.gz external_llvm-e102a64beb3d9a5076d8b5d8aea4604e6b86751a.tar.bz2 |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/SparcV9/SparcV9InstrSelection.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Target/SparcV9/SparcV9InstrSelection.cpp b/lib/Target/SparcV9/SparcV9InstrSelection.cpp index ce7e4dc..7bdf716 100644 --- a/lib/Target/SparcV9/SparcV9InstrSelection.cpp +++ b/lib/Target/SparcV9/SparcV9InstrSelection.cpp @@ -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. |