This is an archive of the discontinued LLVM Phabricator instance.

Fix bug for Ops with default valued attributes and successors/variadic regions.
ClosedPublic

Authored by nimiwio on Sep 21 2021, 3:29 PM.

Details

Summary

When both a DefaultValuedAttr and a successor or variadic region was specified, this would generate invalid C++ declaration. There would be the parameter with a default value, followed by the successors/regions, which don't have a default, which is invalid.

Diff Detail

Event Timeline

nimiwio created this revision.Sep 21 2021, 3:29 PM
nimiwio requested review of this revision.Sep 21 2021, 3:29 PM
mehdi_amini accepted this revision.Sep 21 2021, 5:34 PM
This revision is now accepted and ready to land.Sep 21 2021, 5:34 PM

Thank you for the review! Can you please land this change?