summaryrefslogtreecommitdiff
path: root/lib/Target
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-06-05 18:11:37 +0000
committerChris Lattner <sabre@nondot.org>2002-06-05 18:11:37 +0000
commitdb241dcf514ba4fb61c60d41b47e2dc601a6ac36 (patch)
treeac1c3e6cb1d2b13eb4882dfea948f2fc87002681 /lib/Target
parent122787bcffcedbe2977728c18992e6b97d3216f6 (diff)
downloadllvm-db241dcf514ba4fb61c60d41b47e2dc601a6ac36.tar.gz
llvm-db241dcf514ba4fb61c60d41b47e2dc601a6ac36.tar.bz2
llvm-db241dcf514ba4fb61c60d41b47e2dc601a6ac36.tar.xz
Fix constness
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2762 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/SparcV9/SparcV9InstrSelection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/SparcV9/SparcV9InstrSelection.cpp b/lib/Target/SparcV9/SparcV9InstrSelection.cpp
index 44f4ea5f4d..4e8259f6d8 100644
--- a/lib/Target/SparcV9/SparcV9InstrSelection.cpp
+++ b/lib/Target/SparcV9/SparcV9InstrSelection.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(),