Skip to content

Commit 6bc4689

Browse files
committed
[BOLT] Fix build failure
Changed the mismatched type to `auto`.
1 parent 3be96da commit 6bc4689

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

bolt/lib/Passes/MarkRAStates.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,9 @@ Error MarkRAStates::runOnFunctions(BinaryContext &BC) {
131131
return !BF.containedNegateRAState() || BF.isIgnored();
132132
};
133133

134-
int Total = llvm::count_if(
135-
BC.getBinaryFunctions(),
136-
[&](std::pair<const unsigned long, BinaryFunction> &P) {
137-
return P.second.containedNegateRAState() && !P.second.isIgnored();
138-
});
134+
int Total = llvm::count_if(BC.getBinaryFunctions(), [&](auto &P) {
135+
return P.second.containedNegateRAState() && !P.second.isIgnored();
136+
});
139137

140138
ParallelUtilities::runOnEachFunction(
141139
BC, ParallelUtilities::SchedulingPolicy::SP_INST_LINEAR, WorkFun,

0 commit comments

Comments
 (0)