Skip to content

Commit df2dca7

Browse files
[MC] Use std::move to avoid copy (#126700)
1 parent 31bfae3 commit df2dca7

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)