[all-commits] [llvm/llvm-project] e88fe8: clang/openmp: Fix alignment for ThreadID Address v...

Tom Stellard via All-commits all-commits at lists.llvm.org
Wed May 31 09:12:16 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e88fe8181e360a7596c930c1036f08b7af4925ae
      https://github.com/llvm/llvm-project/commit/e88fe8181e360a7596c930c1036f08b7af4925ae
  Author: Tom Stellard <tstellar at redhat.com>
  Date:   2023-05-31 (Wed, 31 May 2023)

  Changed paths:
    M clang/lib/CodeGen/CGOpenMPRuntime.cpp
    M clang/test/OpenMP/for_reduction_codegen.cpp

  Log Message:
  -----------
  clang/openmp: Fix alignment for ThreadID Address variables

There are places in the runtime, like __kmp_init_indirect_csptr, which
assume these pointers are aligned to sizeof(void*), so make sure we emit
them with the correct alignment.

Fixes #62668

Reviewed By: jlpeyton

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




More information about the All-commits mailing list