1
0
Fork 0
mirror of https://git.suyu.dev/suyu/sirit.git synced 2024-12-22 12:12:05 +00:00

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.
Id OpLabel(std::string_view label_name) {
return Name(OpLabel(), std::move(label_name));
return Name(OpLabel(), label_name);
}
/// Unconditional jump to label.