aboutsummaryrefslogtreecommitdiff
path: root/bolt/lib/Rewrite/BinaryPassManager.cpp
diff options
context:
space:
mode:
authorAmir Ayupov <aaupov@fb.com>2022-01-31 22:07:46 -0800
committerAmir Ayupov <aaupov@fb.com>2022-02-04 15:57:33 -0800
commit194b164eb51eb8ada545f35b485887295a3e3541 (patch)
tree08b81aeecea0480b40fbd8d264d0e7d590b03533 /bolt/lib/Rewrite/BinaryPassManager.cpp
parent296e03fc641870c334123e48f7050e54e4eadde9 (diff)
downloadllvm-194b164eb51eb8ada545f35b485887295a3e3541.zip
llvm-194b164eb51eb8ada545f35b485887295a3e3541.tar.gz
llvm-194b164eb51eb8ada545f35b485887295a3e3541.tar.bz2
[BOLT][NFC] Fix compiler warnings
Summary: - variable 'TotalSize' set but not used - variable 'TotalCallsTopN' set but not used - use of bitwise '|' with boolean operands Reviewed By: maksfb FBD33911129
Diffstat (limited to 'bolt/lib/Rewrite/BinaryPassManager.cpp')
-rw-r--r--bolt/lib/Rewrite/BinaryPassManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/bolt/lib/Rewrite/BinaryPassManager.cpp b/bolt/lib/Rewrite/BinaryPassManager.cpp
index 69c4664..199ed5f 100644
--- a/bolt/lib/Rewrite/BinaryPassManager.cpp
+++ b/bolt/lib/Rewrite/BinaryPassManager.cpp
@@ -408,7 +408,7 @@ void BinaryFunctionPassManager::runAllPasses(BinaryContext &BC) {
Manager.registerPass(
std::make_unique<DynoStatsPrintPass>(
InitialDynoStats, "after all optimizations before SCTC and FOP"),
- opts::PrintDynoStats | opts::DynoStatsAll);
+ opts::PrintDynoStats || opts::DynoStatsAll);
// Add the StokeInfo pass, which extract functions for stoke optimization and
// get the liveness information for them