mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-28 07:17:32 +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:
@@ -972,7 +972,7 @@ SetOperandsForMemInstr(vector<MachineInstr*>& mvec,
|
|||||||
// Discard any leading [0] index.
|
// Discard any leading [0] index.
|
||||||
if (memInst->idx_begin() != memInst->idx_end())
|
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 &&
|
unsigned zeroOrIOne = (CV && CV->getType() == Type::UIntTy &&
|
||||||
(CV->getValue() == 0))? 1 : 0;
|
(CV->getValue() == 0))? 1 : 0;
|
||||||
idxVec.insert(idxVec.end(),
|
idxVec.insert(idxVec.end(),
|
||||||
|
Reference in New Issue
Block a user