[all-commits] [llvm/llvm-project] 61d3a3: AVRExpandPseudoInsts.cpp: Fix a warning. [-Wunused...

NAKAMURA Takumi via All-commits all-commits at lists.llvm.org
Fri Apr 29 05:06:02 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 61d3a3afe26fd49353d9fd37d0e7817a13c28659
      https://github.com/llvm/llvm-project/commit/61d3a3afe26fd49353d9fd37d0e7817a13c28659
  Author: NAKAMURA Takumi <geek4civic at gmail.com>
  Date:   2022-04-29 (Fri, 29 Apr 2022)

  Changed paths:
    M llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp

  Log Message:
  -----------
  AVRExpandPseudoInsts.cpp: Fix a warning. [-Wunused-but-set-variable]

It has been enabled since llvmorg-15-init-5683-g2af845a6519c, aka D122271.


  Commit: 2e6657b340f0f33414a97c79b3d1e37ad947ec7a
      https://github.com/llvm/llvm-project/commit/2e6657b340f0f33414a97c79b3d1e37ad947ec7a
  Author: NAKAMURA Takumi <geek4civic at gmail.com>
  Date:   2022-04-29 (Fri, 29 Apr 2022)

  Changed paths:
    M llvm/include/llvm/Support/Debug.h

  Log Message:
  -----------
  llvm/Support/Debug.h: Suppress warnings with -Asserts. [-Wunused-variable]

Re. setCurrentDebugTypes(X,N), the only user is llvm-ml.cpp (exc. DebugTests)
since llvmorg-15-init-8355-g82ecf9a0b1b3.

FIXME: X and N are evaluated regardless of NDEBUG.
Could we avoid evaluating (but w/o warnings) with NDEBUG?


Compare: https://github.com/llvm/llvm-project/compare/7a0b897e8664...2e6657b340f0


More information about the All-commits mailing list