Skip to content

Commit c2f7c87

Browse files
abhishek-kaushik22joaosaffran
authored andcommitted
[MC] Use std::move to avoid copy (llvm#126700)
1 parent f8baa8e commit c2f7c87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/MC/MCELFStreamer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class MCELFStreamer : public MCObjectStreamer {
105105
unsigned IntValue;
106106
std::string StringValue;
107107
AttributeItem(Types Ty, unsigned Tg, unsigned IV, std::string SV)
108-
: Type(Ty), Tag(Tg), IntValue(IV), StringValue(SV) {}
108+
: Type(Ty), Tag(Tg), IntValue(IV), StringValue(std::move(SV)) {}
109109
};
110110

111111
/// ELF object attributes subsection support

0 commit comments

Comments
 (0)