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:
3ddecfd
)
TargetPassConfig.cpp - use auto const& iterator in for-range loop to avoid copies...
author
Simon Pilgrim
<llvm-dev@redking.me.uk>
Mon, 21 Sep 2020 16:16:57 +0000
(17:16 +0100)
committer
Simon Pilgrim
<llvm-dev@redking.me.uk>
Mon, 21 Sep 2020 16:17:11 +0000
(17:17 +0100)
llvm/lib/CodeGen/TargetPassConfig.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/TargetPassConfig.cpp
b/llvm/lib/CodeGen/TargetPassConfig.cpp
index 19db8eb480ca4f0152ab9c2b07aeaa625a04b049..ef070ee7dbae25d17bfd211378f10521c3503652 100644
(file)
--- a/
llvm/lib/CodeGen/TargetPassConfig.cpp
+++ b/
llvm/lib/CodeGen/TargetPassConfig.cpp
@@
-550,7
+550,7
@@
void TargetPassConfig::addPass(Pass *P, bool verifyAfter) {
addMachinePostPasses(Banner, /*AllowVerify*/ verifyAfter);
// Add the passes after the pass P if there is any.
- for (
auto
IP : Impl->InsertedPasses) {
+ for (
const auto &
IP : Impl->InsertedPasses) {
if (IP.TargetPassID == PassID)
addPass(IP.getInsertedPass(), IP.VerifyAfter);
}