Use ulong instead of uint for size expressions.
authorVikram S. Adve <vadve@cs.uiuc.edu>
Mon, 16 Sep 2002 15:56:45 +0000 (15:56 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Mon, 16 Sep 2002 15:56:45 +0000 (15:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3744 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SparcV9/SparcV9InstrSelection.cpp

index ce7e4dc0d925fb10deccdeb16b0fa05f288ddad4..7bdf716cac031be525b327755d28a92e4f944464 100644 (file)
@@ -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.