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.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wasm/literal.cpp b/src/wasm/literal.cpp
index 7e4aeb8c7..f2100ea71 100644
--- a/src/wasm/literal.cpp
+++ b/src/wasm/literal.cpp
@@ -2702,9 +2702,9 @@ Literal Literal::externalize() const {
Literal Literal::internalize() const {
auto share = type.getHeapType().getShared();
- auto extType = HeapTypes::ext.getBasic(share);
- assert(Type::isSubType(type, Type(extType, Nullable)) &&
- "can only internalize external references");
+ assert(
+ Type::isSubType(type, Type(HeapTypes::ext.getBasic(share), Nullable)) &&
+ "can only internalize external references");
if (isNull()) {
return Literal(std::shared_ptr<GCData>{}, HeapTypes::none.getBasic(share));
}