Fix a range-loop-analysis warning.
authorAmara Emerson <amara@apple.com>
Tue, 23 Feb 2021 22:34:29 +0000 (14:34 -0800)
committerAmara Emerson <amara@apple.com>
Tue, 23 Feb 2021 22:41:08 +0000 (14:41 -0800)
llvm/lib/CodeGen/RDFLiveness.cpp

index 0580a32..d92c6a9 100644 (file)
@@ -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});
   }
 }