This is an archive of the discontinued LLVM Phabricator instance.

[flang] Make EndProgramStmt a NOP + early return
ClosedPublic

Authored by clementval on Feb 1 2023, 5:50 AM.

Details

Summary

Fix done in D143055 can be simpler by making EndProgramStmt a NOP
and dealing with the exit in endNewFunction in a centralize way.
Also add finalization when there is an early exit in the main
program.

Diff Detail

Event Timeline

clementval created this revision.Feb 1 2023, 5:50 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptFeb 1 2023, 5:50 AM
clementval requested review of this revision.Feb 1 2023, 5:50 AM
jeanPerier accepted this revision.Feb 1 2023, 6:35 AM

LGTM, thanks for dealing with the comments!

This revision is now accepted and ready to land.Feb 1 2023, 6:35 AM
This revision was automatically updated to reflect the committed changes.