From 3cfa9955ea63d52cfadd2b3498a6e167948830d4 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Thu, 16 May 2019 04:08:25 +0000 Subject: [PATCH] Fix missing const git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360849 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/MachineInstrBuilder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/CodeGen/MachineInstrBuilder.h b/include/llvm/CodeGen/MachineInstrBuilder.h index 1dcdf086c85..d33e0aa2ab2 100644 --- a/include/llvm/CodeGen/MachineInstrBuilder.h +++ b/include/llvm/CodeGen/MachineInstrBuilder.h @@ -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, -- 2.50.1