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

Jameson Nash via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 11 06:14:23 PDT 2026


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

It looks like `getLangASFromTargetAS` doesn't appear to have knowledge of the Triple (it's a global function), so this seemed to be what was done for existing targets

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


More information about the cfe-commits mailing list