diff --git a/llvm/include/llvm/MC/MCELFStreamer.h b/llvm/include/llvm/MC/MCELFStreamer.h index 9c86b4ecc6599..8065d17546d2e 100644 --- a/llvm/include/llvm/MC/MCELFStreamer.h +++ b/llvm/include/llvm/MC/MCELFStreamer.h @@ -105,7 +105,7 @@ class MCELFStreamer : public MCObjectStreamer { unsigned IntValue; std::string StringValue; AttributeItem(Types Ty, unsigned Tg, unsigned IV, std::string SV) - : Type(Ty), Tag(Tg), IntValue(IV), StringValue(SV) {} + : Type(Ty), Tag(Tg), IntValue(IV), StringValue(std::move(SV)) {} }; /// ELF object attributes subsection support