File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2729,7 +2729,7 @@ void FunctionValidator::visitRefI31(RefI31* curr) {
27292729 getModule ()->features .hasGC (), curr, " ref.i31 requires gc [--enable-gc]" );
27302730 if (curr->type .isRef () && curr->type .getHeapType ().isShared ()) {
27312731 shouldBeTrue (
2732- getModule ()->features .hasGC (),
2732+ getModule ()->features .hasSharedEverything (),
27332733 curr,
27342734 " ref.i31_shared requires shared-everything [--enable-shared-everything]" );
27352735 }
Original file line number Diff line number Diff line change 11;; Test that ref.i31_shared requires shared-everything threads
22
3- ;; RUN: not wasm-opt %s 2>&1 | filecheck %s --check-prefix NO-SHARED
3+ ;; RUN: not wasm-opt %s -all --disable-shared-everything 2>&1 | filecheck %s --check-prefix NO-SHARED
44;; RUN: wasm-opt %s --enable-reference-types --enable-gc --enable-shared-everything -o - -S | filecheck %s --check-prefix SHARED
55
66;; NO-SHARED: ref.i31_shared requires shared-everything [--enable-shared-everything]
You can’t perform that action at this time.
0 commit comments