This is an archive of the discontinued LLVM Phabricator instance.

Model list initialization more directly; fixes an assert with coverage mapping
ClosedPublic

Authored by aaron.ballman on Apr 13 2023, 9:13 AM.

Details

Summary

Instead of using the validity of a brace's source location as a flag for list initialization, this now uses a PointerIntPair to model it so we do not increase the size of the AST node to track this information. This allows us to retain the valid source location information, which fixes the coverage assertion.

Fixes https://github.com/llvm/llvm-project/issues/62105

Diff Detail

Event Timeline

aaron.ballman created this revision.Apr 13 2023, 9:13 AM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: martong. · View Herald Transcript
aaron.ballman requested review of this revision.Apr 13 2023, 9:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 13 2023, 9:13 AM
aaron.ballman edited the summary of this revision. (Show Details)Apr 13 2023, 9:14 AM

I think this makes sense.

erichkeane accepted this revision.Apr 13 2023, 9:54 AM
This revision is now accepted and ready to land.Apr 13 2023, 9:54 AM