================
@@ -308,6 +308,13 @@ Type *Type::getWasm_ExternrefTy(LLVMContext &C) {
   return Ty;
 }
 
+Type *Type::getWasm_NonNullExternrefTy(LLVMContext &C) {
+  // opaque pointer in addrspace(10)
+  // TODO: Hey Jasmine, Is this correct?
----------------
pmatos wrote:

Because you cannot assign non-null to null externrefs interchangeably, it's 
almost like a different type. My initial thought would be to create a new AS 
for this.

https://github.com/llvm/llvm-project/pull/148935
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to