Fix missing const

llvm-svn: 360849
This commit is contained in:
Matt Arsenault 2019-05-16 04:08:25 +00:00
parent f2669eebd5
commit 2006f936ef
1 changed files with 1 additions and 1 deletions

View File

@ -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,