[all-commits] [llvm/llvm-project] 0eabf5: Enable constexpr class members that are device-map...

Gheorghe-Teodor Bercea via All-commits all-commits at lists.llvm.org
Thu Mar 23 07:18:34 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0eabf59528f3c3f64923900cae740d9f26c45ae8
      https://github.com/llvm/llvm-project/commit/0eabf59528f3c3f64923900cae740d9f26c45ae8
  Author: Doru Bercea <doru.bercea at amd.com>
  Date:   2023-03-23 (Thu, 23 Mar 2023)

  Changed paths:
    M clang/lib/CodeGen/CGOpenMPRuntime.cpp
    A clang/test/OpenMP/declare_target_constexpr_codegen.cpp
    A openmp/libomptarget/test/offloading/target_constexpr_mapping.cpp

  Log Message:
  -----------
  Enable constexpr class members that are device-mapped to not be optimized out.

This patch fixes an issue whereby a constexpr class member which is
mapped to the device is being optimized out thus leading to a runtime
error.

Patch: https://reviews.llvm.org/D146552




More information about the All-commits mailing list