Skip to content

Commit

Permalink
[NFC] Fix build for OSX in ModuleSummary
Browse files Browse the repository at this point in the history
  • Loading branch information
darthscsi authored and jackkoenig committed Jun 5, 2024
1 parent c76eb12 commit 086a19f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Dialect/FIRRTL/Transforms/ModuleSummary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ void ModuleSummaryPass::runOnOperation() {

SmallVector<MapTy::value_type> sortedData(data.begin(), data.end());
std::sort(sortedData.begin(), sortedData.end(),
[](const std::tuple<KeyTy, SmallVector<FModuleOp>> &lhs,
const std::tuple<KeyTy, SmallVector<FModuleOp>> &rhs) {
[](const MapTy::value_type &lhs, const MapTy::value_type &rhs) {
return std::get<0>(lhs).opcount * std::get<1>(lhs).size() *
std::get<1>(lhs).size() >
std::get<0>(rhs).opcount * std::get<1>(rhs).size() *
Expand Down

0 comments on commit 086a19f

Please sign in to comment.