This is an archive of the discontinued LLVM Phabricator instance.

[Flang] Use the ultimate symbol in a DeallocateStmt check
ClosedPublic

Authored by kiranchandramohan on Oct 7 2022, 5:29 AM.

Details

Summary

Use the ultimate symbol while calling the IsAllocatableOrPointer
function to ensure that the check works as expected for
host-associated symbols.

Fixes #58178

Diff Detail

Event Timeline

Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
kiranchandramohan requested review of this revision.Oct 7 2022, 5:29 AM
PeteSteinfeld accepted this revision.Oct 7 2022, 7:15 AM

Please run clang-format on check-deallocate.cpp before submitting.

Other than that, all builds and tests correctly and looks good.

Thanks for fixing this!

flang/lib/Semantics/check-deallocate.cpp
29–30

I get a diff on this line when I run clang-format.

This revision is now accepted and ready to land.Oct 7 2022, 7:15 AM

clang-format check-deallocate.cpp