diff options
author | Chris Lattner <sabre@nondot.org> | 2002-06-05 18:11:37 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-06-05 18:11:37 +0000 |
commit | 2152e03bfd9c0cceda7c51adcf56dad6b3d75fb1 (patch) | |
tree | 53ee8bab15f8c1f295d29a2ffce7165babeff5c7 /llvm/lib | |
parent | c0b158b94d9f39455041ee2303630b2a4a17f187 (diff) | |
download | bcm5719-llvm-2152e03bfd9c0cceda7c51adcf56dad6b3d75fb1.tar.gz bcm5719-llvm-2152e03bfd9c0cceda7c51adcf56dad6b3d75fb1.zip |
Fix constness
llvm-svn: 2762
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/Sparc/SparcInstrSelection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Sparc/SparcInstrSelection.cpp b/llvm/lib/Target/Sparc/SparcInstrSelection.cpp index 44f4ea5f4d8..4e8259f6d81 100644 --- a/llvm/lib/Target/Sparc/SparcInstrSelection.cpp +++ b/llvm/lib/Target/Sparc/SparcInstrSelection.cpp @@ -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(), |