[all-commits] [llvm/llvm-project] 39dd4e: [flang] Prevent lowering crash by properly updatin...

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Jul 3 12:11:07 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 39dd4ebd2b63daf4f5e3d44040f53331fce3b966
      https://github.com/llvm/llvm-project/commit/39dd4ebd2b63daf4f5e3d44040f53331fce3b966
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-07-03 (Mon, 03 Jul 2023)

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

  Log Message:
  -----------
  [flang] Prevent lowering crash by properly updating symbol pointer

Kind of an edge case.  When a MODULE FUNCTION or SUBROUTINE
interface is defined by a MODULE PROCEDURE in the same program
unit, ensure that the symbol table pointer in the parse tree is
updated to point to the SubprogramDetails symbol for the
interface, and not left pointing to what should soon become
a dead SubprogramNameDetails symbol.

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




More information about the All-commits mailing list