-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[clang] Fix two RAIIs for recursive parsing #19137
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
Conversation
BacktrackPositions
For the record, this still breaks for me with a slightly different stacktrace. |
Can you upload the new backtrace? |
Done see #18972 |
Test Results 20 files 20 suites 3d 10h 27m 48s ⏱️ Results for commit d094b79. ♻️ This comment has been updated with latest results. |
I am trying to get a stack trace with the full debug info to see if it crashes in a different place than before. |
I just tested the ROOT build:
O2 commit: ead329bb619c79251b1b2aba50556364198ecfe5 (on the |
9802958
to
e18033a
Compare
BacktrackPositions
@hahnjo @silverweed 3734d16 does not apply for me on top of vanilla v6-36-00. What am I missing? |
@hahnjo ok, thanks. I can confirm that with the 4 commits things are ok. |
CachedTokens comes before CachedLexPos in Preprocessor.
Found while investigating root-project#18972 Co-authored-by: silverweed <giacomo.parolini@cern.ch>
FunctionScopesStart and InventedParameterInfosStart were introduced by upstream commit llvm/llvm-project@5c845c1 and are handled in ContextRAII, but not our ContextAndScopeRAII. (cherry picked from commit b702391, it was lost during the upgrade to LLVM 18)
(cherry picked from commit 07021ea, it was lost during the upgrade to LLVM 18)
e18033a
to
d094b79
Compare
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.
LGTM.
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.
LGTM!
Fixes #18972, partially a reincarnation of #14230 because we lost the fix when upgrading to LLVM 18.
Ideally we would have a roottest for the reset of
FunctionScopesStart
, but it seems hard outside of O2...