[PATCH] D156734: [BOLT] Fixing macOS build

Sergey Pupyrev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 31 13:15:20 PDT 2023


spupyrev created this revision.
Herald added a reviewer: rafauler.
Herald added subscribers: treapster, ayermolo.
Herald added a reviewer: Amir.
Herald added a reviewer: maksfb.
Herald added a project: All.
spupyrev edited the summary of this revision.
spupyrev added a subscriber: thakis.
spupyrev published this revision for review.
Herald added subscribers: llvm-commits, yota9.
Herald added a project: LLVM.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D156734

Files:
  bolt/lib/Passes/ReorderFunctions.cpp


Index: bolt/lib/Passes/ReorderFunctions.cpp
===================================================================
--- bolt/lib/Passes/ReorderFunctions.cpp
+++ bolt/lib/Passes/ReorderFunctions.cpp
@@ -340,7 +340,8 @@
         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);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156734.545775.patch
Type: text/x-patch
Size: 616 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230731/03ba74d8/attachment.bin>


More information about the llvm-commits mailing list