From 40fea70ae766fe26b43bba9ac89b41a71c6d558d Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Tue, 24 Oct 2017 22:35:29 +0000 Subject: [PATCH] [Coverage] Provide a stable order for getInstantiationGroups Differential Revision: https://reviews.llvm.org/D39257 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316523 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ProfileData/Coverage/CoverageMapping.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ProfileData/Coverage/CoverageMapping.cpp b/lib/ProfileData/Coverage/CoverageMapping.cpp index 5542cc89f6b..ce932296997 100644 --- a/lib/ProfileData/Coverage/CoverageMapping.cpp +++ b/lib/ProfileData/Coverage/CoverageMapping.cpp @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include @@ -296,7 +297,7 @@ namespace { /// An instantiation set is a collection of functions that have the same source /// code, ie, template functions specializations. class FunctionInstantiationSetCollector { - using MapT = DenseMap>; + using MapT = std::map>; MapT InstantiatedFunctions; public: -- 2.40.0