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 4ff354e56..151ea83e5 100644
--- a/src/wasm/literal.cpp
+++ b/src/wasm/literal.cpp
@@ -34,7 +34,7 @@ Literal::Literal(Type type) : type(type) {
// i31ref is special in that it is non-nullable, so we construct with zero
i32 = 0;
} else {
- assert(type != Type::unreachable && (!type.isRef() || type.isNullable()));
+ assert(type != Type::unreachable && !type.isNonNullable());
if (isData()) {
new (&gcData) std::shared_ptr<GCData>();
} else if (type.isRtt()) {