[llvm] [BOLT] [Passes] Fix two compile warnings in BOLT (PR #73086)

Rafael Auler via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 5 11:58:07 PST 2023


================
@@ -1467,7 +1466,7 @@ void IndirectCallPromotion::runOnFunctions(BinaryContext &BC) {
                                std::max<uint64_t>(TotalIndexBasedCandidates, 1))
          << "%\n";
 
-  (void)verifyProfile;
+  (void)verifyProfile(BFs);
----------------
rafaelauler wrote:

Correct. Delete the line entirely and surround the definition of verifyProfile with #ifndef, like that:

#ifndef NDEBUG
definition goes here
#endif 

https://github.com/llvm/llvm-project/pull/73086


More information about the llvm-commits mailing list