diff options
author | Kazu Hirata <kazu@google.com> | 2023-04-16 08:25:28 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2023-04-16 08:25:28 -0700 |
commit | c83c4b58d1c1125cbac0a54266ff570e9e1f6845 (patch) | |
tree | 3c6475747ccf06dfec9519be228642a67c8ee3dc /llvm/lib/Transforms/Utils/LoopVersioning.cpp | |
parent | 668045eb77628be13e448ffbb855473ffca1cc43 (diff) | |
download | llvm-c83c4b58d1c1125cbac0a54266ff570e9e1f6845.zip llvm-c83c4b58d1c1125cbac0a54266ff570e9e1f6845.tar.gz llvm-c83c4b58d1c1125cbac0a54266ff570e9e1f6845.tar.bz2 |
[Transforms] Apply fixes from performance-for-range-copy (NFC)
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopVersioning.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopVersioning.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopVersioning.cpp b/llvm/lib/Transforms/Utils/LoopVersioning.cpp index cd4363d..a40658a 100644 --- a/llvm/lib/Transforms/Utils/LoopVersioning.cpp +++ b/llvm/lib/Transforms/Utils/LoopVersioning.cpp @@ -210,7 +210,7 @@ void LoopVersioning::prepareNoAliasMetadata() { // Finally, transform the above to actually map to scope list which is what // the metadata uses. - for (auto Pair : GroupToNonAliasingScopes) + for (const auto &Pair : GroupToNonAliasingScopes) GroupToNonAliasingScopeList[Pair.first] = MDNode::get(Context, Pair.second); } |