Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[clang] Correctly RAII reset two "new" Sema fields #15004

Merged
merged 3 commits into from
Apr 2, 2024

Conversation

hahnjo
Copy link
Member

@hahnjo hahnjo commented Mar 18, 2024

FunctionScopesStart and InventedParameterInfosStart were introduced by upstream commit llvm/llvm-project@5c845c1 and are handled in ContextRAII, but not our ContextAndScopeRAII. The second commit reuses ContextRAII and should avoid this kind of problem in the future.

Could fix #14230, to be confirmed.

@hahnjo hahnjo self-assigned this Mar 18, 2024
@phsft-bot
Copy link
Collaborator

Starting build on ROOT-performance-centos8-multicore/soversion, ROOT-ubuntu2204/nortcxxmod, ROOT-ubuntu2004/python3, mac12arm/cxx20, windows10/default
How to customize builds

Copy link

github-actions bot commented Mar 19, 2024

Test Results

    12 files      12 suites   2d 0h 27m 19s ⏱️
 2 605 tests  2 604 ✅ 0 💤 1 ❌
29 280 runs  29 279 ✅ 0 💤 1 ❌

For more details on these failures, see this check.

Results for commit fd66a49.

♻️ This comment has been updated with latest results.

FunctionScopesStart and InventedParameterInfosStart were introduced
by upstream commit
llvm/llvm-project@5c845c1
and are handled in ContextRAII, but not our ContextAndScopeRAII.
@phsft-bot
Copy link
Collaborator

Starting build on ROOT-performance-centos8-multicore/soversion, ROOT-ubuntu2204/nortcxxmod, ROOT-ubuntu2004/python3, mac12arm/cxx20, windows10/default
How to customize builds

@hahnjo hahnjo marked this pull request as ready for review April 2, 2024 09:06
@hahnjo
Copy link
Member Author

hahnjo commented Apr 2, 2024

Independently from testing by ALICE, I believe this change is correct and I went ahead and synchronized it into a tag in our fork of the LLVM monorepo. @vgvassilev can you review please?

Copy link
Member

@vgvassilev vgvassilev left a comment

Choose a reason for hiding this comment

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

This looks good to me. Do we have a plan how to move that upstream?

@phsft-bot
Copy link
Collaborator

Build failed on ROOT-ubuntu2004/python3.
See console output.

@hahnjo
Copy link
Member Author

hahnjo commented Apr 2, 2024

Do we have a plan how to move that upstream?

I was wondering the same. AFAICT we use it for autoloading, which will be hard to argue upstream. But by reusing ContextRAII, we can maybe get away with exposing a couple of public API functions and move it out of the Clang headers...

@hahnjo hahnjo merged commit 9950a44 into root-project:master Apr 2, 2024
14 of 18 checks passed
@hahnjo hahnjo deleted the cling-raii branch April 2, 2024 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ROOT 6.30.01 + C++20 crashes when interpreting specially crafted macro
3 participants