[clang] [llvm] [WebAssembly] Represent reference types as TargetExtType (PR #203165)

Hood Chatham via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 11 07:19:03 PDT 2026


================
@@ -1134,6 +1132,12 @@ static TargetTypeInfo getTargetTypeInfo(const TargetExtType *Ty) {
                           TargetExtType::CanBeVectorElement);
   }
 
+  // Opaque types in the WebAssembly name space.
+  if (Name == "wasm.funcref" || Name == "wasm.externref")
+    return TargetTypeInfo(PointerType::getUnqual(C), TargetExtType::HasZeroInit,
----------------
hoodmane wrote:

Oh yeah it definitely doesn't work right now. Will check what it takes to fix it.

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


More information about the cfe-commits mailing list