[all-commits] [llvm/llvm-project] b0de87: [flang] Retrieve the correct scope when lowering S...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Thu Feb 16 00:05:50 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b0de87268a60e9e755b34b2fb505589e01aab14c
      https://github.com/llvm/llvm-project/commit/b0de87268a60e9e755b34b2fb505589e01aab14c
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2023-02-16 (Thu, 16 Feb 2023)

  Changed paths:
    M flang/lib/Lower/Bridge.cpp
    M flang/test/Lower/select-type.f90

  Log Message:
  -----------
  [flang] Retrieve the correct scope when lowering SELECT TYPE

Scope to retrieve the associating entity is needed to map the
symbol to the IR value. The scope can be found with a source
information. For the type case in SELECT TYPE construct, the source
information is on the Statement<TypeCase>. This patch updates
the lowering so the scopes for each type guards is retrieved
before the processing.

Reviewed By: PeteSteinfeld, vdonaldson

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




More information about the All-commits mailing list