[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? |
vgvassilev
left a comment
There was a problem hiding this comment.
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 |
FunctionScopesStartandInventedParameterInfosStartwere introduced by upstream commit llvm/llvm-project@5c845c1 and are handled inContextRAII, but not ourContextAndScopeRAII. The second commit reusesContextRAIIand should avoid this kind of problem in the future.Could fix #14230, to be confirmed.