[all-commits] [llvm/llvm-project] f4bb21: [flang] Fix crash from PDT component init in modul...

Peter Klausler via All-commits all-commits at lists.llvm.org
Tue Apr 26 10:49:23 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f4bb211a3b1600bd56edf17479f77f86ab402d7b
      https://github.com/llvm/llvm-project/commit/f4bb211a3b1600bd56edf17479f77f86ab402d7b
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-04-26 (Tue, 26 Apr 2022)

  Changed paths:
    M flang/include/flang/Semantics/semantics.h
    M flang/lib/Semantics/mod-file.cpp
    M flang/lib/Semantics/semantics.cpp

  Log Message:
  -----------
  [flang] Fix crash from PDT component init in module file

Semantics now needs to preserve the parse trees from module files,
in case they contain parameterized derived type definitions with
component initializers that may require re-analysis during PDT
instantiation.  Save them in the SemanticsContext.

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




More information about the All-commits mailing list