From daba94b495876cc8dae51c2909ea0ea75f844ac3 Mon Sep 17 00:00:00 2001 From: Rangi Date: Fri, 3 Jul 2026 13:12:29 -0400 Subject: [PATCH] Remove pointless `std::move` from non-move constructor --- src/asm/lexer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asm/lexer.cpp b/src/asm/lexer.cpp index dd97c630..b9b28fe8 100644 --- a/src/asm/lexer.cpp +++ b/src/asm/lexer.cpp @@ -63,7 +63,7 @@ struct Token { ); } Token(int type_, uint32_t value_) : type(type_), value(value_) { assume(type == T_(NUMBER)); } - Token(int type_, std::string const &value_) : type(type_), value(std::move(value_)) { + Token(int type_, std::string const &value_) : type(type_), value(value_) { assume(type == T_(STRING) || type == T_(CHARACTER)); } Token(int type_, std::string &&value_) : type(type_), value(std::move(value_)) {