This is an archive of the discontinued LLVM Phabricator instance.

Make sure TraverseInitListExpr visits InitListExpr exactly twice
ClosedPublic

Authored by sberg on Jun 20 2017, 2:06 PM.

Details

Reviewers
klimek
sberg
Summary

... once each for the syntactic and semantic form. Without this fix, behavior of the newly added tests would have been

InitListExprIsPreOrderVisitedTwice:
syntactic: 1
semantic: 2

InitListExprIsPostOrderVisitedTwice:
syntactic: 0
semantic: 1

InitListExprIsPreOrderNoQueueVisitedTwice:
syntactic: 1
semantic: 2

InitListExprIsPostOrderNoQueueVisitedTwice:
syntactic: 0
semantic: 2

Diff Detail

Event Timeline

sberg created this revision.Jun 20 2017, 2:06 PM
sberg accepted this revision.Jun 29 2017, 12:29 PM
This revision is now accepted and ready to land.Jun 29 2017, 12:29 PM
sberg closed this revision.Jun 29 2017, 12:30 PM