diff --git a/lib/CodeGen/RDFLiveness.cpp b/lib/CodeGen/RDFLiveness.cpp index 0580a327777..d92c6a997f3 100644 --- a/lib/CodeGen/RDFLiveness.cpp +++ b/lib/CodeGen/RDFLiveness.cpp @@ -899,7 +899,7 @@ void Liveness::resetLiveIns() { B.removeLiveIn(I); // Add the newly computed live-ins. const RegisterAggr &LiveIns = LiveMap[&B]; - for (const RegisterRef &R : make_range(LiveIns.rr_begin(), LiveIns.rr_end())) + for (const RegisterRef R : make_range(LiveIns.rr_begin(), LiveIns.rr_end())) B.addLiveIn({MCPhysReg(R.Reg), R.Mask}); } }