sirit: Remove unnecessary std::move in OpLabel

std::move on a std::string_view doesn't do anything a regular copy
wouldn't.
This commit is contained in:
Lioncash 2021-04-12 18:52:56 -04:00 committed by Rodrigo Locatti
parent dc20d93ee6
commit a39596358a

View File

@ -279,7 +279,7 @@ public:
/// The block label instruction: Any reference to a block is through this ref. /// The block label instruction: Any reference to a block is through this ref.
Id OpLabel(std::string_view label_name) { Id OpLabel(std::string_view label_name) {
return Name(OpLabel(), std::move(label_name)); return Name(OpLabel(), label_name);
} }
/// Unconditional jump to label. /// Unconditional jump to label.