Skip to content

Commit 5b74f02

Browse files
committed
[NFC] Use const& avoiding copies
1 parent 9a9cff1 commit 5b74f02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ class InterfaceStubFunctionsConsumer : public ASTConsumer {
295295
OS << "Symbols:\n";
296296
for (const auto &E : Symbols) {
297297
const MangledSymbol &Symbol = E.second;
298-
for (auto Name : Symbol.Names) {
298+
for (const auto &Name : Symbol.Names) {
299299
OS << " - { Name: \""
300300
<< (Symbol.ParentName.empty() || Instance.getLangOpts().CPlusPlus
301301
? ""

0 commit comments

Comments
 (0)