Skip to content

Commit 31ce06c

Browse files
committed
simplify
1 parent dd35926 commit 31ce06c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

bolt/lib/Passes/ProfileQualityStats.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,8 @@ void printCFGFlowConservationStats(const BinaryContext &BC, raw_ostream &OS,
318318
if (BB.isLandingPad())
319319
continue;
320320

321-
auto isPosEC = std::bind(&BinaryBasicBlock::getKnownExecutionCount,
322-
std::placeholders::_1);
323-
if (llvm::any_of(BB.landing_pads(), isPosEC))
321+
if (llvm::any_of(BB.landing_pads(),
322+
std::mem_fn(&BinaryBasicBlock::getKnownExecutionCount)))
324323
continue;
325324

326325
// We don't consider blocks that end with a recursive call instruction

0 commit comments

Comments
 (0)