mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-13 17:00:01 +00:00
Fix constness
llvm-svn: 2762
This commit is contained in:
parent
1a37bd9d7e
commit
d3327b19e0
@ -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(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user