[clang] [llvm] [SystemZ][z/OS] __ptr32 support for z/OS in Clang (PR #96063)
Zibi Sarbinowski via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 19 06:45:11 PDT 2024
================
@@ -7097,10 +7098,14 @@ static bool handleMSPointerTypeQualifierAttr(TypeProcessingState &State,
else if (Attrs[attr::UPtr])
ASIdx = LangAS::ptr32_uptr;
} else if (PtrWidth == 64 && Attrs[attr::Ptr32]) {
- if (Attrs[attr::UPtr])
+ if (Triple.isOSzOS()) {
ASIdx = LangAS::ptr32_uptr;
- else
- ASIdx = LangAS::ptr32_sptr;
+ } else {
+ if (Attrs[attr::UPtr])
+ ASIdx = LangAS::ptr32_uptr;
+ else
+ ASIdx = LangAS::ptr32_sptr;
+ }
----------------
zibi2 wrote:
I assume this block can be simplifed
https://github.com/llvm/llvm-project/pull/96063
More information about the cfe-commits
mailing list