mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-01 08:12:12 +00:00
make operand accessors const-correct
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47814 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8728f1915f
commit
4fa01441d5
@ -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…
x
Reference in New Issue
Block a user