projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
445f4e7
)
Fix a range-loop-analysis warning.
author
Amara Emerson
<amara@apple.com>
Tue, 23 Feb 2021 22:34:29 +0000
(14:34 -0800)
committer
Amara Emerson
<amara@apple.com>
Tue, 23 Feb 2021 22:41:08 +0000
(14:41 -0800)
llvm/lib/CodeGen/RDFLiveness.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/RDFLiveness.cpp
b/llvm/lib/CodeGen/RDFLiveness.cpp
index
0580a32
..
d92c6a9
100644
(file)
--- a/
llvm/lib/CodeGen/RDFLiveness.cpp
+++ b/
llvm/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});
}
}