mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2024-12-22 20:22:02 +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:
parent
dc20d93ee6
commit
a39596358a
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue