-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Conversation
Starting build on |
Test Results 12 files 12 suites 2d 0h 27m 19s ⏱️ 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.
Starting build on |
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? |
There was a problem hiding this 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?
Build failed on ROOT-ubuntu2004/python3. |
I was wondering the same. AFAICT we use it for autoloading, which will be hard to argue upstream. But by reusing |
FunctionScopesStart
andInventedParameterInfosStart
were introduced by upstream commit llvm/llvm-project@5c845c1 and are handled inContextRAII
, but not ourContextAndScopeRAII
. The second commit reusesContextRAII
and should avoid this kind of problem in the future.Could fix #14230, to be confirmed.