[all-commits] [llvm/llvm-project] ee437a: [flang] Don't add a source range to a type instant...

Peter Klausler via All-commits all-commits at lists.llvm.org
Wed Feb 15 12:05:34 PST 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ee437afa912b2608dad783225ec8e98d98f5a084
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-02-15 (Wed, 15 Feb 2023)

  Changed paths:
    M flang/lib/Semantics/type.cpp

  Log Message:
  [flang] Don't add a source range to a type instantiation's scope

A type instantiation's scope doesn't require a source range, as we don't
need/want it to be the result of SemanticsContext::FindScope(), and
adding the original type's source range to the scope of one of its
instantiations has the side effect of expanding the source range of
all of its parents to include the original type definition, which
breaks FindScope() for any scope including a type instantiation.

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

More information about the All-commits mailing list