================ @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits