[llvm] 8697d44 - Fix warning "defined but not used" for debug function (NFC)

Mehdi Amini via llvm-commits llvm-commits at lists.llvm.org
Sun May 17 16:50:47 PDT 2020


Author: Mehdi Amini
Date: 2020-05-17T23:50:18Z
New Revision: 8697d443ab24d1652d09393efca768cdf4c22b39

URL: https://github.com/llvm/llvm-project/commit/8697d443ab24d1652d09393efca768cdf4c22b39
DIFF: https://github.com/llvm/llvm-project/commit/8697d443ab24d1652d09393efca768cdf4c22b39.diff

LOG: Fix warning "defined but not used" for debug function (NFC)

Added: 
    

Modified: 
    llvm/lib/CodeGen/CodeGenPrepare.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index 59cbaf486a69..1c9592fdd384 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);


        


More information about the llvm-commits mailing list