File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4770,9 +4770,14 @@ class ModuleRunnerBase : public ExpressionRunner<SubType> {
47704770 VISIT_ARGUMENTS (flow, curr->operands , arguments)
47714771 VISIT (cont, curr->cont )
47724772
4773+ auto contValue = cont.getSingleValue ();
4774+ if (contValue.isNull ()) {
4775+ trap (" null ref" );
4776+ }
4777+
47734778 // Create a new continuation, copying the old but with the new type +
47744779 // arguments.
4775- auto old = cont. getSingleValue () .getContData ();
4780+ auto old = contValue .getContData ();
47764781 auto newData = *old;
47774782 newData.type = curr->type .getHeapType ();
47784783 for (auto arg : arguments) {
Original file line number Diff line number Diff line change 4343 )
4444 )
4545 )
46+
47+ ;; CHECK: [fuzz-exec] calling null-binding
48+ ;; CHECK-NEXT: [trap null ref]
49+ (func $null-binding (export " null-binding" )
50+ (drop
51+ (cont.bind $C1 $C2
52+ (i32.const 42 )
53+ (ref.null $C1 )
54+ )
55+ )
56+ )
4657)
4758
You can’t perform that action at this time.
0 commit comments