diff --git a/lld/include/lld/Common/BPSectionOrdererBase.inc b/lld/include/lld/Common/BPSectionOrdererBase.inc index 43de0f722a30..7d13cd25c0e7 100644 --- a/lld/include/lld/Common/BPSectionOrdererBase.inc +++ b/lld/include/lld/Common/BPSectionOrdererBase.inc @@ -161,7 +161,7 @@ auto BPOrderer::computeOrder( sectionToIdx.try_emplace(isec, i); BPFunctionNode::UtilityNodeT maxUN = 0; - DenseMap startupSectionIdxUNs; + MapVector startupSectionIdxUNs; // Used to define the initial order for startup functions. DenseMap sectionIdxToTimestamp; std::unique_ptr reader; @@ -177,7 +177,7 @@ auto BPOrderer::computeOrder( } auto &traces = reader->getTemporalProfTraces(); - DenseMap sectionIdxToFirstUN; + MapVector sectionIdxToFirstUN; for (size_t traceIdx = 0; traceIdx < traces.size(); traceIdx++) { uint64_t currentSize = 0, cutoffSize = 1; size_t cutoffTimestamp = 1;