1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00

Fix a range-loop-analysis warning.

This commit is contained in:
Amara Emerson 2021-02-23 14:34:29 -08:00
parent bf4a14e46a
commit 2a1ac5b937

View 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});
}
}