[all-commits] [llvm/llvm-project] 3388ca: [OPENMP]Fix PR46593: Reduction initializer missing...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Thu Jul 16 08:03:18 PDT 2020


  Branch: refs/heads/release/11.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 3388ca490dc61365a6607b3217bfe446de3eabe4
      https://github.com/llvm/llvm-project/commit/3388ca490dc61365a6607b3217bfe446de3eabe4
  Author: Alexey Bataev <a.bataev at hotmail.com>
  Date:   2020-07-16 (Thu, 16 Jul 2020)

  Changed paths:
    M clang/lib/CodeGen/CGOpenMPRuntime.cpp
    M clang/lib/Sema/SemaOpenMP.cpp
    M clang/test/OpenMP/for_reduction_codegen_UDR.cpp

  Log Message:
  -----------
  [OPENMP]Fix PR46593: Reduction initializer missing construnctor call.

Summary:
If user-defined reductions with the initializer are used with classes,
the compiler misses the constructor call when trying to create a private
copy of the reduction variable.

Reviewers: jdoerfert

Subscribers: cfe-commits, yaxunl, guansong, caomhin

Tags: #clang

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

(cherry picked from commit 41d0af00740ac5140f11c7f37157fc6e6dd1b016)




More information about the All-commits mailing list