Skip to content

Commit d751e40

Browse files
authored
[NFC] Use const& avoiding copies (#90334)
Fixes #90285.
1 parent 4d839d8 commit d751e40

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)