[all-commits] [llvm/llvm-project] 8d9ee4: clang: Avoid dummy LAST entry in OffloadArch (#195...

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


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8d9ee493b8dfd3c8e3141a4536e2da406e482c7e
      https://github.com/llvm/llvm-project/commit/8d9ee493b8dfd3c8e3141a4536e2da406e482c7e
  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 (#195952)

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