Skip to content

[HIPIFY][clang][compatibility][fix] clang 21.0.0git compatibility fix#1974

Merged
emankov merged 1 commit intoROCm:amd-developfrom
emankov:HIPIFY
May 29, 2025
Merged

[HIPIFY][clang][compatibility][fix] clang 21.0.0git compatibility fix#1974
emankov merged 1 commit intoROCm:amd-developfrom
emankov:HIPIFY

Conversation

@emankov
Copy link
Collaborator

@emankov emankov commented May 29, 2025

[Root Cause]

  • [LLVM]#139584[clang] Remove intrusive reference count from DiagnosticOptions

[IMP]

[Note]

  • Unfortunately, the class DiagnosticsEngine has assignment operator and copy ctor both marked as delete, thus the compatibility patch can't be implemented as a separate function in the llcompat namespace

[Root Cause]
+ [LLVM][#139584](https://github.com/llvm/llvm-project/pull/139584)[clang] Remove intrusive reference count from `DiagnosticOptions`

[IMP]
+ `LLVM < 21` is also supported, but `LLVM 21` should be newer than [671cd5acb49f9fae274f66cd71464d4afed914e3](llvm/llvm-project@671cd5a) (2025-05-20) to build `hipify-clang` correctly

[Note]
+ Unfortunately, the class `DiagnosticsEngine` has assignment operator and copy ctor both marked as `delete`, thus the compatibility patch can't be implemented as a separate function in the `llcompat` namespace
@emankov emankov requested review from kzhuravl and scchan May 29, 2025 21:20
@emankov emankov self-assigned this May 29, 2025
@emankov emankov requested a review from searlmc1 as a code owner May 29, 2025 21:20
@emankov emankov added fix It fixes bug clang clang compiler related issue or change compatibility Compatibility change or request labels May 29, 2025
Copy link

@scchan scchan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@emankov emankov merged commit dffeca3 into ROCm:amd-develop May 29, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clang clang compiler related issue or change compatibility Compatibility change or request fix It fixes bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants