Skip to content

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 scchan and kzhuravl 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