diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2020-07-09 10:55:50 +0100 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2020-07-09 10:56:38 +0100 |
commit | dbed9d5ce7f5ab870b3ff20a14ee6c366c803fdb (patch) | |
tree | ece0e277d8e9a6b874c42f50245eaee743c9fbab /llvm/lib/Support/CommandLine.cpp | |
parent | 9e7fddbd36f567217255c1df1cb816b79f0250af (diff) | |
download | llvm-dbed9d5ce7f5ab870b3ff20a14ee6c366c803fdb.zip llvm-dbed9d5ce7f5ab870b3ff20a14ee6c366c803fdb.tar.gz llvm-dbed9d5ce7f5ab870b3ff20a14ee6c366c803fdb.tar.bz2 |
VersionPrinter - use const auto& iterator in for-range-loop.
Avoids unnecessary copies and silences clang tidy warning.
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r-- | llvm/lib/Support/CommandLine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp index cee9608..12ef0d5 100644 --- a/llvm/lib/Support/CommandLine.cpp +++ b/llvm/lib/Support/CommandLine.cpp @@ -2537,7 +2537,7 @@ public: // information. if (ExtraVersionPrinters != nullptr) { outs() << '\n'; - for (auto I : *ExtraVersionPrinters) + for (const auto &I : *ExtraVersionPrinters) I(outs()); } |