This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix code generation for polymorphic deallocation
ClosedPublic

Authored by clementval on Oct 31 2022, 7:18 AM.

Details

Summary

This patch fix issues found during call to deallocate.
fir.class can be handled the same way as fir.box in fir.store operation
code generation. In MutableBox::createNewFirBox, the fir.class is
also already a boxed entity.

Diff Detail

Event Timeline

clementval created this revision.Oct 31 2022, 7:18 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptOct 31 2022, 7:18 AM
Herald added a subscriber: mehdi_amini. · View Herald Transcript
clementval requested review of this revision.Oct 31 2022, 7:18 AM
PeteSteinfeld accepted this revision.Oct 31 2022, 8:25 AM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Oct 31 2022, 8:25 AM