This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix USE rename
ClosedPublic

Authored by luporl on Feb 13 2023, 11:19 AM.

Details

Summary

Fix USE rename when use-name and local-name are the same.
Previously, the associated symbol was being removed from scope.

Operator rename implementation needed no change, because, as it
doesn't call AddUseRename(), symbol erasure is skipped.

Fixes #60223

Diff Detail

Event Timeline

luporl created this revision.Feb 13 2023, 11:19 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
Herald added a subscriber: sunshaoce. · View Herald Transcript
luporl requested review of this revision.Feb 13 2023, 11:19 AM
luporl added a subscriber: flang-commits.
klausler accepted this revision.Feb 13 2023, 11:22 AM
This revision is now accepted and ready to land.Feb 13 2023, 11:22 AM
luporl edited the summary of this revision. (Show Details)Feb 13 2023, 11:23 AM
This revision was automatically updated to reflect the committed changes.