[all-commits] [llvm/llvm-project] 1fae14: [flang] Fix USE rename

Leandro Lupori via All-commits all-commits at lists.llvm.org
Tue Feb 14 05:05:56 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1fae1464d7a78e7184f2b40f25e9491c87d93693
      https://github.com/llvm/llvm-project/commit/1fae1464d7a78e7184f2b40f25e9491c87d93693
  Author: Leandro Lupori <leandro.lupori at linaro.org>
  Date:   2023-02-14 (Tue, 14 Feb 2023)

  Changed paths:
    M flang/lib/Semantics/resolve-names.cpp
    A flang/test/Semantics/resolve116.f90

  Log Message:
  -----------
  [flang] Fix USE rename

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

Reviewed By: klausler

Differential Revision: https://reviews.llvm.org/D143933




More information about the All-commits mailing list