[all-commits] [llvm/llvm-project] f6cbd7: [llvm-profgen] Fix warnings when building without ...

Mikael Holmen via All-commits all-commits at lists.llvm.org
Thu Dec 4 02:46:32 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f6cbd7a6df25eddfd1db58e5f874fd98a6f8148e
      https://github.com/llvm/llvm-project/commit/f6cbd7a6df25eddfd1db58e5f874fd98a6f8148e
  Author: Mikael Holmen <mikael.holmen at ericsson.com>
  Date:   2025-12-04 (Thu, 04 Dec 2025)

  Changed paths:
    M llvm/tools/llvm-profgen/ProfiledBinary.cpp

  Log Message:
  -----------
  [llvm-profgen] Fix warnings when building without asserts [NFC]

Building without asserts we got:
 ../tools/llvm-profgen/ProfiledBinary.cpp:627:14: error: unused variable 'Err' [-Werror,-Wunused-variable]
   627 |         bool Err = MIA->evaluateBranch(Inst, Address, Size, Target);
       |              ^~~
 ../tools/llvm-profgen/ProfiledBinary.cpp:1172:14: error: unused variable 'TopProbe' [-Werror,-Wunused-variable]
  1172 |         auto TopProbe = TopLevelProbes.begin();
       |              ^~~~~~~~
 2 errors generated.

Add [[maybe_unused]] to the variables just used in asserts.



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