diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2022-08-01 13:35:18 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-01 13:35:18 -0700 |
commit | 0b288693cc74810278af9c4630fdb0d5fa7dd7bd (patch) | |
tree | eec12469a6981c1d666ed1ca85221202f306de8e /test | |
parent | 67459642f1d3cfdb74190a83aa1228cfa7332ecd (diff) | |
download | binaryen-0b288693cc74810278af9c4630fdb0d5fa7dd7bd.tar.gz binaryen-0b288693cc74810278af9c4630fdb0d5fa7dd7bd.tar.bz2 binaryen-0b288693cc74810278af9c4630fdb0d5fa7dd7bd.zip |
Update reference type Literal constructors to use HeapType (#4857)
We already require non-null literals to have non-null types, but with this
change we can enforce that constraint by construction. Also remove the default
behavior of creating a function reference literal with heap type `func`, since
there is always a more specific function type to use.
Diffstat (limited to 'test')
-rw-r--r-- | test/gtest/possible-contents.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/gtest/possible-contents.cpp b/test/gtest/possible-contents.cpp index e4e6bc045..90c6cac51 100644 --- a/test/gtest/possible-contents.cpp +++ b/test/gtest/possible-contents.cpp @@ -84,7 +84,7 @@ protected: PossibleContents anyGlobal = PossibleContents::global("anyGlobal", anyref); PossibleContents nonNullFunc = PossibleContents::literal( - Literal("func", Type(Signature(Type::none, Type::none), NonNullable))); + Literal("func", Signature(Type::none, Type::none))); PossibleContents exactI32 = PossibleContents::exactType(Type::i32); PossibleContents exactAnyref = PossibleContents::exactType(anyref); |