================
@@ -2289,7 +2310,18 @@ Address CIRGenFunction::createTempAlloca(mlir::Type ty, 
CharUnits align,
   // be different from the type defined by the language. For example,
   // in C++ the auto variables are in the default address space. Therefore
   // cast alloca to the default address space when necessary.
-  assert(!cir::MissingFeatures::addressSpace());
+
+  LangAS allocaAS = cgm.getLangTempAllocaAddressSpace();
----------------
RiverDave wrote:

Thanks! I had utilized what we had in the incubator as reference and we didn't 
seem to be utilizing the alloca param as you just pointed out.

As a side note:
(I'll try to reason more on what we have in the incubator and whether if it 
make sense for it to be upstreamed. —perhaps that's the biggest thing I've 
learnt from upstreaming so far haha).

https://github.com/llvm/llvm-project/pull/161212
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to