summaryrefslogtreecommitdiff
path: root/src/tools/fuzzing.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/fuzzing.h')
-rw-r--r--src/tools/fuzzing.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tools/fuzzing.h b/src/tools/fuzzing.h
index 595652c94..8bfb119da 100644
--- a/src/tools/fuzzing.h
+++ b/src/tools/fuzzing.h
@@ -673,8 +673,9 @@ private:
Index numVars = upToSquared(MAX_VARS);
for (Index i = 0; i < numVars; i++) {
auto type = getConcreteType();
- if (type.isRef() && !type.isNullable()) {
- // We can't use a nullable type as a var, which is null-initialized.
+ if (!type.isDefaultable()) {
+ // We can't use a nondefaultable type as a var, as those must be
+ // initialized to some default value.
continue;
}
funcContext->typeLocals[type].push_back(params.size() +