[all-commits] [llvm/llvm-project] 59e098: [OPENMP]Fix PR46170: partial mapping for array sec...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Wed Jun 3 06:14:05 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 59e0987a068ca3842dd2b4ddf2edf001fb1de1b5
      https://github.com/llvm/llvm-project/commit/59e0987a068ca3842dd2b4ddf2edf001fb1de1b5
  Author: Alexey Bataev <a.bataev at hotmail.com>
  Date:   2020-06-03 (Wed, 03 Jun 2020)

  Changed paths:
    M clang/lib/CodeGen/CGOpenMPRuntime.cpp
    A clang/test/OpenMP/target_map_member_expr_array_section_codegen.cpp

  Log Message:
  -----------
  [OPENMP]Fix PR46170: partial mapping for array sections of data members.

Summary:
If the data member is mapped as an array section, need to emit the
pointer to the last element of this array section and use this pointer
as the highest element in partial struct data.

Reviewers: jdoerfert

Subscribers: yaxunl, guansong, sstefan1, cfe-commits, caomhin

Tags: #clang

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




More information about the All-commits mailing list