This is an archive of the discontinued LLVM Phabricator instance.

[flang] Use fir.type_desc in nullify
ClosedPublic

Authored by clementval on Jul 11 2023, 9:27 AM.

Details

Summary

Do not look for the global early in nullify codegen. The type descriptor
can be emitted later and it would raise an error as it could not be found.
Use fir.type_desc instead so it delays the type descriptor lookup until
evrything is emitted.

https://github.com/llvm/llvm-project/issues/63775

Diff Detail

Event Timeline

clementval created this revision.Jul 11 2023, 9:27 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 11 2023, 9:27 AM
clementval requested review of this revision.Jul 11 2023, 9:27 AM
clementval edited the summary of this revision. (Show Details)Jul 11 2023, 9:28 AM
vzakhari accepted this revision.Jul 11 2023, 9:31 AM

LGTM. Thank you!

This revision is now accepted and ready to land.Jul 11 2023, 9:31 AM
This revision was landed with ongoing or failed builds.Jul 11 2023, 12:42 PM
This revision was automatically updated to reflect the committed changes.