[all-commits] [llvm/llvm-project] 1696b8: [OPENMP]Fix PR48740: OpenMP declare reduction in C...

cilkplus via All-commits all-commits at lists.llvm.org
Tue Mar 30 05:39:11 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1696b8ae96b2d8bcbf90894bd344a8a090f43c84
      https://github.com/llvm/llvm-project/commit/1696b8ae96b2d8bcbf90894bd344a8a090f43c84
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2021-03-30 (Tue, 30 Mar 2021)

  Changed paths:
    M clang/lib/CodeGen/CGOpenMPRuntime.cpp
    M clang/lib/Sema/SemaOpenMP.cpp
    M clang/test/OpenMP/declare_reduction_ast_print.c
    M clang/test/OpenMP/declare_reduction_codegen.c
    M clang/test/OpenMP/declare_reduction_messages.c

  Log Message:
  -----------
  [OPENMP]Fix PR48740: OpenMP declare reduction in C does not require an initializer

If no initializer-clause is specified, the private variables will be
initialized following the rules for initialization of objects with static
storage duration.

Need to adjust the implementation to the current version of the
standard.

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




More information about the All-commits mailing list