[all-commits] [llvm/llvm-project] e101af: [CIR][NFC] Fix maybe_unused build issues (#163997)

Andy Kaylor via All-commits all-commits at lists.llvm.org
Fri Oct 17 13:34:36 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e101afc595d9cf7bd006ff610cbbf815f2a2ad05
      https://github.com/llvm/llvm-project/commit/e101afc595d9cf7bd006ff610cbbf815f2a2ad05
  Author: Andy Kaylor <akaylor at nvidia.com>
  Date:   2025-10-17 (Fri, 17 Oct 2025)

  Changed paths:
    M clang/lib/CIR/CodeGen/CIRGenValue.h

  Log Message:
  -----------
  [CIR][NFC] Fix maybe_unused build issues (#163997)

This fixes a build failure that occurs with some versions of clang.
There was a problem in clang, which has been fixed in more recent
versions, where mixing GNU-style attributes with C++-style attributes
caused a failure. A recent code change updated a few uses of
`LLVM_ATTRIBUTE_UNUSED` to `[[maybe_unused]]`, triggering this problem.

This change reorders the attributes in a way that avoids the issue.



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