[all-commits] [llvm/llvm-project] ee7b6f: [flang] Set proper source location for the main fu...

Slava Zakharin via All-commits all-commits at lists.llvm.org
Tue Mar 21 12:33:06 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ee7b6fd4c1c11641f9b1b54441ed038fd761de13
  Author: Slava Zakharin <szakharin at nvidia.com>
  Date:   2023-03-21 (Tue, 21 Mar 2023)

  Changed paths:
    M flang/lib/Lower/PFTBuilder.cpp
    A flang/test/Lower/main_location.f90

  Log Message:
  [flang] Set proper source location for the main function.

Take the source position for the anonymous program from its scope.
If the first evaluation is a construct or directive, then it has
null source position.

Author: vdonaldson
Differential Revision: https://reviews.llvm.org/D146445

More information about the All-commits mailing list