This is an archive of the discontinued LLVM Phabricator instance.

Fix the const overload of IgnoreExprNodes
ClosedPublic

Authored by d on Apr 12 2021, 3:06 PM.

Details

Summary

The existing code causes an infinite recursion. This is likely an
oversight of commit c0e5e3fbfa504c37 [1] where the intent must have been
to call the non-const overload.

[1] https://reviews.llvm.org/D87278

Diff Detail

Event Timeline

d requested review of this revision.Apr 12 2021, 3:06 PM
d created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptApr 12 2021, 3:06 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
d updated this revision to Diff 336983.Apr 12 2021, 3:32 PM

rebase

gribozavr2 accepted this revision.Apr 12 2021, 11:19 PM

Thanks for the fix! Do you have commit access?

This revision is now accepted and ready to land.Apr 12 2021, 11:19 PM
d added a comment.Apr 13 2021, 7:26 AM

Thanks for the fix! Do you have commit access?

Trying arc land I realize I do not...

d added a comment.Apr 13 2021, 7:27 AM

@gribozavr2 it's also unclear to me where the tests for this are so I couldn't add a new test, is that OK?

d added a comment.Apr 13 2021, 7:29 AM

More importantly, the bug exists in LLVM 12, what is the policy of patching the back branches in this project?

This revision was automatically updated to reflect the committed changes.

Trying arc land I realize I do not...

Pushed as 595c3758e47042c876e7390d09642ea050ba6dbf.

it's also unclear to me where the tests for this are so I couldn't add a new test, is that OK?

Yes, unfortunately we don't have unit tests for the AST.

More importantly, the bug exists in LLVM 12, what is the policy of patching the back branches in this project?

Please take a look at https://llvm.org/docs/HowToReleaseLLVM.html#merge-requests .