Remove redundant explicit return types in lambdas

Remove redundant explicit return types in lambdas
This commit is contained in:
Mateusz Chudyk
2024-01-10 11:27:15 +00:00
committed by igcbot
parent 9c2f813c3b
commit 4de2d84fb9
40 changed files with 79 additions and 78 deletions

View File

@ -119,7 +119,7 @@ void DeSSA::print(raw_ostream& OS, const Module*) const
bool doSort = (!Val2IntMap.empty());
auto valCmp = [&](const Value* V0, const Value* V1) -> bool {
auto valCmp = [&](const Value* V0, const Value* V1) {
int n0 = Val2IntMap[V0];
int n1 = Val2IntMap[V1];
return n0 < n1;
@ -257,7 +257,7 @@ void DeSSA::print(raw_ostream& OS, const Module*) const
}
}
auto nodeCmp = [&](const Node* N0, const Node* N1) -> bool {
auto nodeCmp = [&](const Node* N0, const Node* N1) {
const Value* V0 = N0->value;
const Value* V1 = N1->value;
return valCmp(V0, V1);