[all-commits] [llvm/llvm-project] 660733: [flang][OpenMP] Fix pointer variables in atomic re...

PeixinQiao via All-commits all-commits at lists.llvm.org
Sat May 28 01:43:16 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 66073306d888acd9b3e8acbbb4bda54ba25bc7e9
      https://github.com/llvm/llvm-project/commit/66073306d888acd9b3e8acbbb4bda54ba25bc7e9
  Author: Peixin-Qiao <qiaopeixin at huawei.com>
  Date:   2022-05-28 (Sat, 28 May 2022)

  Changed paths:
    M flang/lib/Lower/OpenMP.cpp
    M flang/test/Lower/OpenMP/atomic-read.f90
    M flang/test/Lower/OpenMP/atomic-write.f90

  Log Message:
  -----------
  [flang][OpenMP] Fix pointer variables in atomic read/write

For pointer variables, using getSymbolAddress cannot get the coorect
address for atomic read/write operands. Use genExprAddr to fix it.

Reviewed By: shraiysh, NimishMishra

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




More information about the All-commits mailing list