This is an archive of the discontinued LLVM Phabricator instance.

[flang][NFC] Deallocation of polymorphoc entities are done with the runtime call
ClosedPublic

Authored by clementval on Oct 31 2022, 3:24 AM.

Details

Summary

The runtime function AllocatableDeallocate/PointerDeallocate is reponsible to
deallocate and finalize it. This patch just adds tests to make sure the correct
runtime function is called.

Diff Detail

Event Timeline

clementval created this revision.Oct 31 2022, 3:24 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptOct 31 2022, 3:24 AM
clementval requested review of this revision.Oct 31 2022, 3:24 AM
jeanPerier added a comment.EditedOct 31 2022, 5:32 AM

It seems the modified test is failing (see builbots).

Update test

It seems the modified test is failing (see builbots).

The test checking LLVM IR was failing. I updated it to not track the alloca since they change positions with any change.

PeteSteinfeld accepted this revision.Oct 31 2022, 6:08 AM

All builds and tests correctly and looks good.

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