summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocFast.cpp
diff options
context:
space:
mode:
authorMark de Wever <koraq@xs4all.nl>2020-01-01 17:23:21 +0100
committerMark de Wever <koraq@xs4all.nl>2020-01-01 20:01:37 +0100
commit8dc7b982b4556c243e0502e6e230bdd53ddd65ff (patch)
tree518a39bbece25299e56350272605c7a9bd8f60c6 /llvm/lib/CodeGen/RegAllocFast.cpp
parent9b24dad6c06bba771b805ffd9bd047af25317e52 (diff)
downloadbcm5719-llvm-8dc7b982b4556c243e0502e6e230bdd53ddd65ff.tar.gz
bcm5719-llvm-8dc7b982b4556c243e0502e6e230bdd53ddd65ff.zip
[NFC] Fixes -Wrange-loop-analysis warnings
This avoids new warnings due to D68912 adds -Wrange-loop-analysis to -Wall. Differential Revision: https://reviews.llvm.org/D71857
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocFast.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocFast.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocFast.cpp b/llvm/lib/CodeGen/RegAllocFast.cpp
index 237ed0ebc36..89b5bcebd61 100644
--- a/llvm/lib/CodeGen/RegAllocFast.cpp
+++ b/llvm/lib/CodeGen/RegAllocFast.cpp
@@ -1253,7 +1253,7 @@ void RegAllocFast::allocateBasicBlock(MachineBasicBlock &MBB) {
MachineBasicBlock::iterator MII = MBB.begin();
// Add live-in registers as live.
- for (const MachineBasicBlock::RegisterMaskPair LI : MBB.liveins())
+ for (const MachineBasicBlock::RegisterMaskPair &LI : MBB.liveins())
if (MRI->isAllocatable(LI.PhysReg))
definePhysReg(MII, LI.PhysReg, regReserved);
OpenPOWER on IntegriCloud