mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
make operand accessors const-correct
llvm-svn: 47814
This commit is contained in:
parent
ffde7a642a
commit
d1fc75add0
@ -1219,7 +1219,11 @@ public:
|
||||
}
|
||||
|
||||
/// Transparently provide more efficient getOperand methods.
|
||||
Value *getOperand(unsigned i) const {
|
||||
const Value *getOperand(unsigned i) const {
|
||||
assert(i < 3 && "getOperand() out of range!");
|
||||
return Ops[i];
|
||||
}
|
||||
Value *getOperand(unsigned i) {
|
||||
assert(i < 3 && "getOperand() out of range!");
|
||||
return Ops[i];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user