diff options
author | Alon Zakai <azakai@google.com> | 2021-01-11 21:14:49 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-11 13:14:49 -0800 |
commit | e8e97f3dec5098bbadcfa0814b3a4f4081474b75 (patch) | |
tree | d90555c0062d7bbf75d9c4eede6d359e64404d4c /src/wasm-type.h | |
parent | eadb53c442209962f98dde22f3b769c691398cad (diff) | |
download | binaryen-e8e97f3dec5098bbadcfa0814b3a4f4081474b75.tar.gz binaryen-e8e97f3dec5098bbadcfa0814b3a4f4081474b75.tar.bz2 binaryen-e8e97f3dec5098bbadcfa0814b3a4f4081474b75.zip |
[GC] Add Type::IsDefaultable and use that to do more validation (#3456)
Diffstat (limited to 'src/wasm-type.h')
-rw-r--r-- | src/wasm-type.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wasm-type.h b/src/wasm-type.h index 0df3bfeed..958e14477 100644 --- a/src/wasm-type.h +++ b/src/wasm-type.h @@ -141,6 +141,7 @@ public: bool isRtt() const; bool isStruct() const; bool isArray() const; + bool isDefaultable() const; private: template<bool (Type::*pred)() const> bool hasPredicate() { |