This is an archive of the discontinued LLVM Phabricator instance.

[flang] Shifting function argument attributes to reflect type changes
ClosedPublic

Authored by Renaud-K on Nov 9 2022, 6:08 PM.

Details

Summary

https://reviews.llvm.org/D137671 insured that when a function argument was inserted, argument attributes were properly shifted.
However, in the case the function body is empty, attributes are not shifted either.
This change addresses this by directly manipulating attributes for empty functions. Inserting arguments is not supported in this case, because they have no block arguments since they have no body.

Diff Detail

Event Timeline

Renaud-K created this revision.Nov 9 2022, 6:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 9 2022, 6:08 PM
Renaud-K requested review of this revision.Nov 9 2022, 6:08 PM
This revision is now accepted and ready to land.Nov 10 2022, 12:14 AM