From 2152e03bfd9c0cceda7c51adcf56dad6b3d75fb1 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 5 Jun 2002 18:11:37 +0000 Subject: Fix constness llvm-svn: 2762 --- llvm/lib/Target/Sparc/SparcInstrSelection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib') 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& mvec, // Discard any leading [0] index. if (memInst->idx_begin() != memInst->idx_end()) { - ConstantUInt* CV = dyn_cast(* memInst->idx_begin()); + const ConstantUInt* CV = dyn_cast(memInst->idx_begin()->get()); unsigned zeroOrIOne = (CV && CV->getType() == Type::UIntTy && (CV->getValue() == 0))? 1 : 0; idxVec.insert(idxVec.end(), -- cgit v1.2.3