[llvm-branch-commits] [clang] [CIR] Propagate MemorySpaceAttrInterface for Lang and Target specific AS attributes (PR #179073)

Konstantinos Parasyris via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Feb 1 19:59:57 PST 2026


================
@@ -338,7 +338,7 @@ static RValue emitBuiltinAlloca(CIRGenFunction &cgf, const CallExpr *e,
   // builtin / dynamic alloca we have to handle it here.
 
   if (!cir::isMatchingAddressSpace(
-          cgf.getCIRAllocaAddressSpace(),
+          cgf.getMLIRContext(), cgf.getCIRAllocaAddressSpace(),
           e->getType()->getPointeeType().getAddressSpace())) {
     cgf.cgm.errorNYI(e->getSourceRange(),
                      "Non-default address space for alloca");
----------------
koparasy wrote:

I find the error message confusing. You test if the AS match right?

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


More information about the llvm-branch-commits mailing list