[all-commits] [llvm/llvm-project] 952bda: [flang][OpenMP] Fix copyprivate allocatable/pointe...

Leandro Lupori via All-commits all-commits at lists.llvm.org
Tue Jun 25 05:26:03 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 952bdaaf79c1e5d7364160b21de0cd1295cdfbd8
      https://github.com/llvm/llvm-project/commit/952bdaaf79c1e5d7364160b21de0cd1295cdfbd8
  Author: Leandro Lupori <leandro.lupori at linaro.org>
  Date:   2024-06-25 (Tue, 25 Jun 2024)

  Changed paths:
    M flang/include/flang/Lower/AbstractConverter.h
    M flang/lib/Lower/Bridge.cpp
    M flang/lib/Lower/OpenMP/ClauseProcessor.cpp
    A flang/test/Lower/OpenMP/copyprivate2.f90

  Log Message:
  -----------
  [flang][OpenMP] Fix copyprivate allocatable/pointer lowering (#95975)

The lowering of copyprivate clauses with allocatable or pointer
variables was incorrect. This happened because the values passed to
copyVar() are always wrapped in SymbolBox::Intrinsic, which
resulted in allocatable/pointer variables being handled as regular
ones.

This is fixed by providing to copyVar() the attributes of the
variables being copied, to make it possible to detect and handle
allocatable/pointer variables correctly.

Fixes #95801



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