[all-commits] [llvm/llvm-project] 40d3a0: [openmp] Fix strict aliasing issue in cmpxchg routine

serge-sans-paille via All-commits all-commits at lists.llvm.org
Thu May 12 07:17:11 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 40d3a0ba4d9e5452c0a68cfdaa8e88eb8ed5c63d
      https://github.com/llvm/llvm-project/commit/40d3a0ba4d9e5452c0a68cfdaa8e88eb8ed5c63d
  Author: serge-sans-paille <sguelton at redhat.com>
  Date:   2022-05-12 (Thu, 12 May 2022)

  Changed paths:
    M openmp/runtime/src/kmp_os.h

  Log Message:
  -----------
  [openmp] Fix strict aliasing issue in cmpxchg routine

Avoid warning under -fstrict-aliasing by using a call to memcpy to perform type
punning.

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




More information about the All-commits mailing list