We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d3b16a commit 64ab851Copy full SHA for 64ab851
src/tools/fuzzing/fuzzing.cpp
@@ -3470,7 +3470,8 @@ Expression* TranslateToFuzzReader::makeBasicRef(Type type) {
3470
return makeRefFuncConst(type);
3471
}
3472
case HeapType::cont: {
3473
- if (type.isNullable() || oneIn(4)) {
+ // Most of the time, avoid null continuations, as they will trap.
3474
+ if (type.isNullable() && oneIn(4)) {
3475
return builder.makeRefNull(HeapTypes::cont.getBasic(share));
3476
3477
// Emit the simplest possible continuation.
0 commit comments