diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/wasm/wasm-type.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm/wasm-type.cpp b/src/wasm/wasm-type.cpp index ffc18b9fd..d3c4c0fc4 100644 --- a/src/wasm/wasm-type.cpp +++ b/src/wasm/wasm-type.cpp @@ -415,7 +415,7 @@ bool Type::isDefaultable() const { // A variable can get a default value if its type is concrete (unreachable // and none have no values, hence no default), and if it's a reference, it // must be nullable. - return isConcrete() && (!isRef() || isNullable()); + return isConcrete() && (!isRef() || isNullable()) && !isRtt(); } bool Type::operator<(const Type& other) const { |