================
@@ -73,13 +74,17 @@ struct CIRGenTypeCache {
/// The alignment of size_t.
unsigned char SizeAlignInBytes;
+ LangAS ASTAllocaAddressSpace;
+
clang::CharUnits getSizeAlign() const {
return clang::CharUnits::fromQuantity(SizeAlignInBytes);
}
clang::CharUnits getPointerAlign() const {
return clang::CharUnits::fromQuantity(PointerAlignInBytes);
}
+
+ LangAS getASTAllocaAddressSpace() const { return ASTAllocaAddressSpace; }
----------------
andykaylor wrote:
```suggestion
cir::TargetAddressSpaceAttr getCIRAllocaAddressSpace() const { return
cirAllocaAddressSpace; }
```
https://github.com/llvm/llvm-project/pull/161028
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits