This is an archive of the discontinued LLVM Phabricator instance.

[SyntaxTree][Synthesis] Fix allocation in `createTree` for more general use
ClosedPublic

Authored by eduucaldas on Sep 17 2020, 2:40 AM.

Details

Summary

Prior to this change createTree could not create arbitrary syntax
trees. Now it dispatches to the constructor of the concrete syntax tree
according to the NodeKind passed as argument. This allows reuse inside
the Synthesis API.

Diff Detail

Event Timeline

eduucaldas created this revision.Sep 17 2020, 2:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 17 2020, 2:40 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
eduucaldas requested review of this revision.Sep 17 2020, 2:40 AM
eduucaldas edited the summary of this revision. (Show Details)Sep 17 2020, 2:43 AM
eduucaldas edited the summary of this revision. (Show Details)

Fix comment

Harbormaster completed remote builds in B71991: Diff 292444.
gribozavr2 accepted this revision.Sep 17 2020, 5:54 AM
This revision is now accepted and ready to land.Sep 17 2020, 5:54 AM