[all-commits] [llvm/llvm-project] 26dde1: [OpenACC] Add warning for VLAs in a private/firstp...

Erich Keane via All-commits all-commits at lists.llvm.org
Wed Aug 6 13:14:43 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 26dde15ed4f1310fa5df3baf03d802ea1cf009b8
      https://github.com/llvm/llvm-project/commit/26dde15ed4f1310fa5df3baf03d802ea1cf009b8
  Author: erichkeane <ekeane at nvidia.com>
  Date:   2025-08-06 (Wed, 06 Aug 2025)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaOpenACC.cpp
    M clang/test/SemaOpenACC/private_firstprivate_reduction_required_ops.cpp
    M clang/test/SemaOpenACC/sub-array.cpp

  Log Message:
  -----------
  [OpenACC] Add warning for VLAs in a private/firstprivate clause

private/firstprivate typically do copy operations, however copying a VLA
isn't really possible.  This patch introduces a warning to alert the
person that this copy isn't happening correctly.

As a future direction, we MIGHT consider doing additional work to make
sure they are initialized/copied/deleted/etc correctly.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list