projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
122787b
)
Fix constness
author
Chris Lattner
<sabre@nondot.org>
Wed, 5 Jun 2002 18:11:37 +0000
(18:11 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 5 Jun 2002 18:11:37 +0000
(18:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2762
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/SparcV9/SparcV9InstrSelection.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/SparcV9/SparcV9InstrSelection.cpp
b/lib/Target/SparcV9/SparcV9InstrSelection.cpp
index 44f4ea5f4d8d2aa21ecec67db6c59386565e19b5..4e8259f6d811001ea6282ee4e3665005fb3e3358 100644
(file)
--- 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(),