1
0
mirror of https://github.com/c64scene-ar/llvm-6502.git synced 2025-04-11 16:37:42 +00:00

Fix constness

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2762 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-06-05 18:11:37 +00:00
parent 122787bcff
commit db241dcf51

@ -972,7 +972,7 @@ SetOperandsForMemInstr(vector<MachineInstr*>& mvec,
// Discard any leading [0] index.
if (memInst->idx_begin() != memInst->idx_end())
{
ConstantUInt* CV = dyn_cast<ConstantUInt>(* memInst->idx_begin());
const ConstantUInt* CV = dyn_cast<ConstantUInt>(memInst->idx_begin()->get());
unsigned zeroOrIOne = (CV && CV->getType() == Type::UIntTy &&
(CV->getValue() == 0))? 1 : 0;
idxVec.insert(idxVec.end(),