This is an archive of the discontinued LLVM Phabricator instance.

Don't revisit the subexpressions of PseudoObjectExpr when building a ParentMap
ClosedPublic

Authored by ahatanak on Dec 1 2022, 11:25 PM.

Details

Summary

The assertion that is removed in this patch was failing when ObjC dot notation expressions appear in both sides of an assignment (see the test case in arc-repeated-weak.mm). Visit the PseudoObjectExpr once when the syntactic expression is visited and return without visiting the subexpressions when it's visited again when the semantic expressions are visited.

Diff Detail

Event Timeline

ahatanak created this revision.Dec 1 2022, 11:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 1 2022, 11:25 PM
ahatanak requested review of this revision.Dec 1 2022, 11:25 PM
This revision is now accepted and ready to land.Dec 2 2022, 10:40 AM