[all-commits] [llvm/llvm-project] 39b747: [Flang][OpenMP][Sema] More gracefully handle undef...

agozillon via All-commits all-commits at lists.llvm.org
Fri May 5 04:30:20 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 39b747d0b5e9a92fcea59ac454a04d20ed025e71
  Author: Andrew Gozillon <Andrew.Gozillon at amd.com>
  Date:   2023-05-05 (Fri, 05 May 2023)

  Changed paths:
    M flang/lib/Semantics/check-omp-structure.cpp
    M flang/lib/Semantics/check-omp-structure.h
    A flang/test/Semantics/OpenMP/declare-target06.f90

  Log Message:
  [Flang][OpenMP][Sema] More gracefully handle undefined symbol in a no implicit module for declare target

Prior to this change, if you define a module as such with a declare target in it:

module test_0
    implicit none
!$omp declare target(no_implicit_materialization_1)
end module test_0

The compiler will crash rather than give some form of reasonable
diagnostic. This patch attempts to fix that.

Reviewers: kiranchandramohan

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

More information about the All-commits mailing list