This is an archive of the discontinued LLVM Phabricator instance.

[flang][runtime] Handle aliasing in Assign()
ClosedPublic

Authored by klausler on Feb 14 2023, 9:34 AM.

Details

Summary

Detect and handle LHS/RHS aliasing when effecting intrinsic
assignments via the Assign() runtime function.

Also: don't apply special handling for allocatable LHS when calling
a user-defined type-bound ASSIGNMENT(=) generic procedure for a
polymorphic type, and refactor some code into utility functions to
make Assign() more comprehensible.

Diff Detail

Event Timeline

klausler created this revision.Feb 14 2023, 9:34 AM
klausler requested review of this revision.Feb 14 2023, 9:34 AM
This revision is now accepted and ready to land.Feb 14 2023, 9:39 AM
This revision was landed with ongoing or failed builds.Feb 14 2023, 9:54 AM
This revision was automatically updated to reflect the committed changes.
vzakhari added inline comments.
flang/runtime/assign.cpp
131

Looks like a typo :)