[all-commits] [llvm/llvm-project] 91f10d: [Flang][OpenMP] Skip implicit mapping of named con...

Akash Banerjee via All-commits all-commits at lists.llvm.org
Fri Jun 27 05:05:44 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 91f10df794d3293e18a56770acc1fd66fa0b7690
      https://github.com/llvm/llvm-project/commit/91f10df794d3293e18a56770acc1fd66fa0b7690
  Author: Akash Banerjee <akash.banerjee at amd.com>
  Date:   2025-06-27 (Fri, 27 Jun 2025)

  Changed paths:
    M flang/lib/Lower/OpenMP/OpenMP.cpp

  Log Message:
  -----------
  [Flang][OpenMP] Skip implicit mapping of named constants (#145966)

Added early return when mapping named constants.

This prevents linking error in the following example:

```
program test
   use, intrinsic :: iso_c_binding, only: c_double
   implicit none

   real(c_double) :: x
   integer        :: i
   x = 0.0_c_double
   !$omp target teams distribute parallel do reduction(+:x)
   do i = 0, 9
      x = x + 1.0_c_double
   end do
   !$omp end target teams distribute parallel do
end program test
```



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list