Skip to content

Commit e84fae8

Browse files
authored
[clang] MangledSymbol: remove pointless copy of vector (#90012)
This pr addresses #87255 adds a std::move call to the names in MangledSymbol's constructor.
1 parent 6a6fcbf commit e84fae8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ class InterfaceStubFunctionsConsumer : public ASTConsumer {
3333

3434
MangledSymbol(const std::string &ParentName, uint8_t Type, uint8_t Binding,
3535
std::vector<std::string> Names)
36-
: ParentName(ParentName), Type(Type), Binding(Binding), Names(Names) {}
36+
: ParentName(ParentName), Type(Type), Binding(Binding),
37+
Names(std::move(Names)) {}
3738
};
3839
using MangledSymbols = std::map<const NamedDecl *, MangledSymbol>;
3940

0 commit comments

Comments
 (0)