From 8697d443ab24d1652d09393efca768cdf4c22b39 Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Sun, 17 May 2020 23:16:21 +0000 Subject: [PATCH] Fix warning "defined but not used" for debug function (NFC) --- llvm/lib/CodeGen/CodeGenPrepare.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp index 59cbaf4..1c9592f 100644 --- a/llvm/lib/CodeGen/CodeGenPrepare.cpp +++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp @@ -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); -- 2.7.4