This is an archive of the discontinued LLVM Phabricator instance.

[clang][NFC] Add a notice to desugarForDiagnostic
ClosedPublic

Authored by zyounan on Jun 13 2023, 7:09 PM.

Details

Summary

desugarForDiagnostic only sets ShouldAKA to true if desugaring
happens, otherwise ShouldAKA is left intact and might be uninitialized.

Victims (including me):

https://github.com/llvm/llvm-project/commit/25bf8cb3c0e3c41231289a6ff0a37b6d49b24011

https://github.com/llvm/llvm-project/commit/0e8384a0fe4f03d60cd92aba1cae074512481ca2

Diff Detail

Event Timeline

zyounan created this revision.Jun 13 2023, 7:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 13 2023, 7:09 PM
zyounan published this revision for review.Jun 13 2023, 7:14 PM
zyounan added reviewers: aaron.ballman, lh123.
Herald added a project: Restricted Project. · View Herald TranscriptJun 13 2023, 7:14 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
aaron.ballman accepted this revision.Jun 14 2023, 6:02 AM

LGTM, thank you for the extra documentation, that is a surprising behavior

This revision is now accepted and ready to land.Jun 14 2023, 6:02 AM
This revision was automatically updated to reflect the committed changes.