mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-18 21:24:32 -04:00
Fix missing const
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360849 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -82,7 +82,7 @@ public:
|
||||
/// Get the register for the operand index.
|
||||
/// The operand at the index should be a register (asserted by
|
||||
/// MachineOperand).
|
||||
unsigned getReg(unsigned Idx) { return MI->getOperand(Idx).getReg(); }
|
||||
unsigned getReg(unsigned Idx) const { return MI->getOperand(Idx).getReg(); }
|
||||
|
||||
/// Add a new virtual register operand.
|
||||
const MachineInstrBuilder &addReg(unsigned RegNo, unsigned flags = 0,
|
||||
|
||||
Reference in New Issue
Block a user