summaryrefslogtreecommitdiff
path: root/src/wasm/literal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm/literal.cpp')
-rw-r--r--src/wasm/literal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm/literal.cpp b/src/wasm/literal.cpp
index e8641cbd7..6aaba729a 100644
--- a/src/wasm/literal.cpp
+++ b/src/wasm/literal.cpp
@@ -96,7 +96,7 @@ Literal::Literal(std::string_view string)
int32_t u = uint8_t(string[i]) | (uint8_t(string[i + 1]) << 8);
contents.push_back(Literal(u));
}
- gcData = std::make_shared<GCData>(HeapType::string, contents);
+ gcData = std::make_shared<GCData>(HeapType::string, std::move(contents));
}
Literal::Literal(const Literal& other) : type(other.type) {