This is an archive of the discontinued LLVM Phabricator instance.

[flang] Set proper source location for the main function.
ClosedPublic

Authored by vzakhari on Mar 20 2023, 11:10 AM.

Details

Summary

Take the source position for the anonymous program from its scope.
If the first evaluation is a construct or directive, then it has
null source position.

Author: vdonaldson

Diff Detail

Event Timeline

vzakhari created this revision.Mar 20 2023, 11:10 AM
vzakhari requested review of this revision.Mar 20 2023, 11:10 AM
vdonaldson accepted this revision.Mar 20 2023, 11:16 AM
This revision is now accepted and ready to land.Mar 20 2023, 11:16 AM