make operand accessors const-correct

llvm-svn: 47814
This commit is contained in:
Chris Lattner 2008-03-02 05:32:05 +00:00
parent f724e34ddc
commit bf6acfb71d
1 changed files with 5 additions and 1 deletions

View File

@ -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];
}