Commit 60cd24d
authored
Fuzzer: Avoid generating ref.as_non_null in more places (WebAssembly#7870)
1. Rather than assert against this, allow it. We cannot prevent a situation
where some nested struct.new in a global init ends up with a tricky
field. Instead, we note the issue later, and recreate the global init.
2. That recreation logic had an ordering bug: First handle tuples, and
then also handle ref.as_non_null, as we may end up creating one
right there.1 parent d06f09b commit 60cd24d
1 file changed
+7
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
683 | 683 | | |
684 | 684 | | |
685 | 685 | | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
686 | 693 | | |
687 | 694 | | |
688 | 695 | | |
| |||
695 | 702 | | |
696 | 703 | | |
697 | 704 | | |
698 | | - | |
699 | | - | |
700 | | - | |
701 | | - | |
702 | | - | |
703 | | - | |
704 | 705 | | |
705 | 706 | | |
706 | 707 | | |
| |||
3445 | 3446 | | |
3446 | 3447 | | |
3447 | 3448 | | |
3448 | | - | |
3449 | 3449 | | |
3450 | 3450 | | |
3451 | 3451 | | |
| |||
0 commit comments