diff options
Diffstat (limited to 'src/wasm')
-rw-r--r-- | src/wasm/literal.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/wasm/literal.cpp b/src/wasm/literal.cpp index 65c2b4e62..6a4614a90 100644 --- a/src/wasm/literal.cpp +++ b/src/wasm/literal.cpp @@ -294,24 +294,6 @@ Literal Literal::makeFromMemory(void* p, Type type) { } } -Literal Literal::makeFromMemory(void* p, const Field& field) { - switch (field.packedType) { - case Field::not_packed: - return makeFromMemory(p, field.type); - case Field::i8: { - int8_t i; - memcpy(&i, p, sizeof(i)); - return Literal(int32_t(i)); - } - case Field::i16: { - int16_t i; - memcpy(&i, p, sizeof(i)); - return Literal(int32_t(i)); - } - } - WASM_UNREACHABLE("unexpected type"); -} - Literal Literal::standardizeNaN(const Literal& input) { if (!std::isnan(input.getFloat())) { return input; |