From 7bef6da66f9ac748e816a449cc1873b5886cb8e5 Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Tue, 24 Oct 2017 22:35:29 +0000 Subject: [Coverage] Provide a stable order for getInstantiationGroups Differential Revision: https://reviews.llvm.org/D39257 llvm-svn: 316523 --- llvm/lib/ProfileData/Coverage/CoverageMapping.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib/ProfileData/Coverage/CoverageMapping.cpp') diff --git a/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp b/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp index 5542cc8..ce93229 100644 --- a/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp +++ b/llvm/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: -- cgit v1.1