Skip to content

Commit 2a692d2

Browse files
[DebugInfo] Use std::move (NFC) (llvm#136263)
1 parent d3d9b37 commit 2a692d2

File tree

1 file changed

+3
-1
lines changed
  • llvm/include/llvm/DebugInfo/LogicalView/Core

1 file changed

+3
-1
lines changed

llvm/include/llvm/DebugInfo/LogicalView/Core/LVOptions.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ namespace logicalview {
4141
// Generate get and set 'std::string' functions.
4242
#define STD_STRING_FUNCTION(FAMILY, FIELD) \
4343
std::string get##FAMILY##FIELD() const { return FAMILY.FIELD; } \
44-
void set##FAMILY##FIELD(std::string FIELD) { FAMILY.FIELD = FIELD; } \
44+
void set##FAMILY##FIELD(std::string FIELD) { \
45+
FAMILY.FIELD = std::move(FIELD); \
46+
} \
4547
void reset##FAMILY##FIELD() { FAMILY.FIELD = ""; }
4648

4749
// Generate get and set 'std::set' functions.

0 commit comments

Comments
 (0)