[all-commits] [llvm/llvm-project] 3aa516: [llvm-exegesis] Fix unused variable warning on non...

Aiden Grossman via All-commits all-commits at lists.llvm.org
Fri Dec 29 17:38:11 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3aa516e4f1046a8cb68c5cfc3778339ff74a8cfe
      https://github.com/llvm/llvm-project/commit/3aa516e4f1046a8cb68c5cfc3778339ff74a8cfe
  Author: Aiden Grossman <agrossman154 at yahoo.com>
  Date:   2023-12-29 (Fri, 29 Dec 2023)

  Changed paths:
    M llvm/tools/llvm-exegesis/lib/X86/Target.cpp

  Log Message:
  -----------
  [llvm-exegesis] Fix unused variable warning on non-linux platforms

Previous patches moved the save/restore system call register functions
behind a preprocessor check, but neglected to move the constant
expression array used by the functions behind the preprocessor check.
This patch gates the array behind the preprocessor check to fix build
failures caused by -Werror,unused-const-variable on the clang--ppc64-aix
buildbot.




More information about the All-commits mailing list