aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGenPrepare.cpp
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2020-05-17 23:16:21 +0000
committerMehdi Amini <joker.eph@gmail.com>2020-05-17 23:50:18 +0000
commit8697d443ab24d1652d09393efca768cdf4c22b39 (patch)
tree6a970c1bbbbe3b832fe7431ff7b45a65c966e505 /llvm/lib/CodeGen/CodeGenPrepare.cpp
parentffc6e593d2717e16187fe118342db28ff3be5351 (diff)
downloadllvm-8697d443ab24d1652d09393efca768cdf4c22b39.zip
llvm-8697d443ab24d1652d09393efca768cdf4c22b39.tar.gz
llvm-8697d443ab24d1652d09393efca768cdf4c22b39.tar.bz2
Fix warning "defined but not used" for debug function (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r--llvm/lib/CodeGen/CodeGenPrepare.cpp2
1 files changed, 1 insertions, 1 deletions
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);