Fix warning "defined but not used" for debug function (NFC)
authorMehdi Amini <joker.eph@gmail.com>
Sun, 17 May 2020 23:16:21 +0000 (23:16 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Sun, 17 May 2020 23:50:18 +0000 (23:50 +0000)
llvm/lib/CodeGen/CodeGenPrepare.cpp

index 59cbaf4..1c9592f 100644 (file)
@@ -595,7 +595,7 @@ bool CodeGenPrepare::runOnFunction(Function &F) {
 }
 
 // Verify BFI has been updated correctly by recomputing BFI and comparing them.
-void CodeGenPrepare::verifyBFIUpdates(Function &F) {
+void LLVM_ATTRIBUTE_UNUSED CodeGenPrepare::verifyBFIUpdates(Function &F) {
   DominatorTree NewDT(F);
   LoopInfo NewLI(NewDT);
   BranchProbabilityInfo NewBPI(F, NewLI, TLInfo);