From 06ef4e209d0e42f9cb465f795b36977b05a996ac Mon Sep 17 00:00:00 2001 From: Quentin Colombet Date: Wed, 8 Jun 2016 16:24:55 +0000 Subject: [RegBankSelect] Use const_iterator instead of iterator for repairReg. The repairing code has no reason to change the source or destination of the registers. llvm-svn: 272163 --- llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen') diff --git a/llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp b/llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp index 726ef268adb..daf1685b067 100644 --- a/llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp +++ b/llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp @@ -106,7 +106,7 @@ bool RegBankSelect::assignmentMatch( void RegBankSelect::repairReg( MachineOperand &MO, const RegisterBankInfo::ValueMapping &ValMapping, RegBankSelect::RepairingPlacement &RepairPt, - const iterator_range::iterator> &NewVRegs) { + const iterator_range::const_iterator> &NewVRegs) { assert(ValMapping.BreakDown.size() == 1 && "Not yet implemented"); // Assume we are repairing a use and thus, the original reg will be // the source of the repairing. -- cgit v1.2.3