From eb1f44a2f3bc7ece8adbbbf911c84dfa221356f1 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 llvm-svn: 316523 --- 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: