From a39596358a3a5488c06554c0c15184a6af71e433 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 12 Apr 2021 18:52:56 -0400 Subject: [PATCH] sirit: Remove unnecessary std::move in OpLabel std::move on a std::string_view doesn't do anything a regular copy wouldn't. --- include/sirit/sirit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sirit/sirit.h b/include/sirit/sirit.h index cde0647..3baa56f 100644 --- a/include/sirit/sirit.h +++ b/include/sirit/sirit.h @@ -279,7 +279,7 @@ public: /// The block label instruction: Any reference to a block is through this ref. Id OpLabel(std::string_view label_name) { - return Name(OpLabel(), std::move(label_name)); + return Name(OpLabel(), label_name); } /// Unconditional jump to label.