diff options
author | Lioncash <[email protected]> | 2021-04-12 18:52:56 -0400 |
---|---|---|
committer | Rodrigo Locatti <[email protected]> | 2021-04-17 01:22:43 -0300 |
commit | a39596358a3a5488c06554c0c15184a6af71e433 (patch) | |
tree | 4909af4e291210379773dd53baee1dde25b1eba5 /include | |
parent | dc20d93ee6a22c6d041436dae7629f621cecbc91 (diff) | |
download | sirit-a39596358a3a5488c06554c0c15184a6af71e433.tar.gz sirit-a39596358a3a5488c06554c0c15184a6af71e433.zip |
sirit: Remove unnecessary std::move in OpLabel
std::move on a std::string_view doesn't do anything a regular copy
wouldn't.
Diffstat (limited to 'include')
-rw-r--r-- | include/sirit/sirit.h | 2 |
1 files changed, 1 insertions, 1 deletions
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. |