[clang] [clang] model WASM alloca addrspaces in Sema (PR #197540)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 9 01:52:41 PDT 2026


================
@@ -15101,6 +15070,15 @@ LangAS ASTContext::getLangASForBuiltinAddressSpace(unsigned AS) const {
   if (LangOpts.CUDA)
     return getTargetInfo().getCUDABuiltinAddressSpace(AS);
 
+  if (getTargetInfo().getTriple().isWasm()) {
----------------
arsenm wrote:

Why isn't this in getLangASFromTargetAS?

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


More information about the cfe-commits mailing list