[clang] [llvm] [WebAssembly] Add support for nonnull_extern_ref type (PR #148935)

Paulo Matos via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 21 01:37:00 PDT 2025


================
@@ -36,5 +36,7 @@
 
 WASM_REF_TYPE("__externref_t", "externref_t", WasmExternRef, WasmExternRefTy, 10)
 
+WASM_REF_TYPE("__non_null_externref_t", "non_null_externref_t", WasmNonNullExternRef, WasmNonNullExternRefTy, 10)
----------------
pmatos wrote:

Maybe this should be 11 or something... So that when we constraint the types behaviour we can differentiate it from (the nullable) externref.

https://github.com/llvm/llvm-project/pull/148935


More information about the llvm-commits mailing list