This is an archive of the discontinued LLVM Phabricator instance.

[flang] Check if dummy is allocated before deallocation for optional intent(out)
ClosedPublic

Authored by clementval on Mar 9 2023, 3:40 AM.

Details

Summary

Similary to non-optional argument, check if the argument is allocated before
doing the deallocation for intent(out) optional.

Depends on D145679

Diff Detail

Event Timeline

clementval created this revision.Mar 9 2023, 3:40 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 9 2023, 3:40 AM
clementval requested review of this revision.Mar 9 2023, 3:40 AM

@clementval, I wasn't able to download this patch because arc patch could not resolve the dependencies. Could you please rebase after delivering D145679?

PeteSteinfeld accepted this revision.Mar 9 2023, 7:08 AM

Things build and test correctly, but .../llvm-project/flang/lib/Lower/ConvertVariable.cpp needs to have clang-format run on it. Please do so before merging.

This revision is now accepted and ready to land.Mar 9 2023, 7:08 AM
clementval updated this revision to Diff 503764.Mar 9 2023, 7:15 AM

clang-format