https://github.com/hoodmane created 
https://github.com/llvm/llvm-project/pull/151107

See suggestion here:
https://github.com/llvm/llvm-project/pull/150201#discussion_r2237982637

>From bb71b4795d85938772e78de3022d5d58b25d6d20 Mon Sep 17 00:00:00 2001
From: Hood Chatham <roberthoodchat...@gmail.com>
Date: Tue, 29 Jul 2025 10:41:49 +0200
Subject: [PATCH] [WebAssembly] Add gc target feature to
 addBleedingEdgeFeatures

https://github.com/llvm/llvm-project/pull/150201#discussion_r2237982637
---
 clang/lib/Basic/Targets/WebAssembly.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/clang/lib/Basic/Targets/WebAssembly.cpp 
b/clang/lib/Basic/Targets/WebAssembly.cpp
index e362350ea678f..2ea505874e38b 100644
--- a/clang/lib/Basic/Targets/WebAssembly.cpp
+++ b/clang/lib/Basic/Targets/WebAssembly.cpp
@@ -197,6 +197,7 @@ bool WebAssemblyTargetInfo::initFeatureMap(
     Features["multimemory"] = true;
     Features["tail-call"] = true;
     Features["wide-arithmetic"] = true;
+    Features["gc"] = true;
     setSIMDLevel(Features, RelaxedSIMD, true);
   };
   if (CPU == "generic") {

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to