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

Alexey Bataev via All-commits all-commits at lists.llvm.org
Wed Jul 15 12:15:28 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 41d0af00740ac5140f11c7f37157fc6e6dd1b016
      https://github.com/llvm/llvm-project/commit/41d0af00740ac5140f11c7f37157fc6e6dd1b016
  Author: Alexey Bataev <a.bataev at hotmail.com>
  Date:   2020-07-15 (Wed, 15 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




More information about the All-commits mailing list