[all-commits] [llvm/llvm-project] d1c7fa: [CIR][NFC] Fix a build warning in CIRGenCall.cpp (...

Andy Kaylor via All-commits all-commits at lists.llvm.org
Fri Apr 25 12:31:25 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d1c7fa85525355add4bf5cef9a229cf24599f1da
      https://github.com/llvm/llvm-project/commit/d1c7fa85525355add4bf5cef9a229cf24599f1da
  Author: Andy Kaylor <akaylor at nvidia.com>
  Date:   2025-04-25 (Fri, 25 Apr 2025)

  Changed paths:
    M clang/lib/CIR/CodeGen/CIRGenCall.cpp

  Log Message:
  -----------
  [CIR][NFC] Fix a build warning in CIRGenCall.cpp (#137366)

We have been getting a warning about a default statement in a fully
covered switch statement. This change fixes that by removing the
default, updating all paths to return a value rather than depending on a
local variable which is returned immediately after the switch, and
adding an llvm_unreachable for non-enum values.



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