[all-commits] [llvm/llvm-project] 006bb5: clang: Avoid dummy LAST entry in OffloadArch

Matt Arsenault via All-commits all-commits at lists.llvm.org
Tue May 5 15:02:46 PDT 2026


  Branch: refs/heads/users/arsenm/clang/avoid-dummy-last-value-OffloadArch-enum
  Home:   https://github.com/llvm/llvm-project
  Commit: 006bb5b9ccc63650ca2c34573463374e2a5c6e6e
      https://github.com/llvm/llvm-project/commit/006bb5b9ccc63650ca2c34573463374e2a5c6e6e
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-05-05 (Tue, 05 May 2026)

  Changed paths:
    M clang/include/clang/Basic/OffloadArch.h
    M clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp

  Log Message:
  -----------
  clang: Avoid dummy LAST entry in OffloadArch

Use this as an alias of the final entry, rather than its
own enum value. This will allow writing covered switches
that don't need to handle this case. This matches how
other places with an end enum entry handle this.



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