summaryrefslogtreecommitdiff
path: root/src/wasm-interpreter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-interpreter.h')
-rw-r--r--src/wasm-interpreter.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/wasm-interpreter.h b/src/wasm-interpreter.h
index 851c4013c..87b0e0c67 100644
--- a/src/wasm-interpreter.h
+++ b/src/wasm-interpreter.h
@@ -1838,12 +1838,7 @@ public:
}
}
Flow visitStringConst(StringConst* curr) {
- Literals contents;
- for (size_t i = 0; i < curr->string.size(); i++) {
- contents.push_back(Literal(int32_t(curr->string[i])));
- }
- auto heapType = curr->type.getHeapType();
- return Literal(std::make_shared<GCData>(heapType, contents), heapType);
+ return Literal(curr->string.toString());
}
Flow visitStringMeasure(StringMeasure* curr) { WASM_UNREACHABLE("unimp"); }
Flow visitStringEncode(StringEncode* curr) { WASM_UNREACHABLE("unimp"); }