[BOLT] Fixing macOS build

Fixing build after https://reviews.llvm.org/D153039

Reviewed By: Amir

Differential Revision: https://reviews.llvm.org/D156734
This commit is contained in:
spupyrev 2023-07-31 13:14:01 -07:00
parent f9b2cbfffa
commit 299ec3c22a

View File

@ -340,7 +340,8 @@ void ReorderFunctions::runOnFunctions(BinaryContext &BC) {
applyCDSLayout(FuncSizes, FuncCounts, CallCounts, CallOffsets);
// Create a single cluster from the computed order of hot functions.
Clusters.emplace_back(Cluster(Result, Cg));
std::vector<CallGraph::NodeId> NodeOrder(Result.begin(), Result.end());
Clusters.emplace_back(Cluster(NodeOrder, Cg));
} break;
case RT_PETTIS_HANSEN:
Clusters = pettisAndHansen(Cg);