]> granicus.if.org Git - llvm/commitdiff
[Coverage] Provide a stable order for getInstantiationGroups
authorVedant Kumar <vsk@apple.com>
Tue, 24 Oct 2017 22:35:29 +0000 (22:35 +0000)
committerVedant Kumar <vsk@apple.com>
Tue, 24 Oct 2017 22:35:29 +0000 (22:35 +0000)
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

index 5542cc89f6be334fde6d74bdbad60336272e1798..ce9322969971f0f0cd89e8702993f6c6043d33b2 100644 (file)
@@ -33,6 +33,7 @@
 #include <cassert>
 #include <cstdint>
 #include <iterator>
+#include <map>
 #include <memory>
 #include <string>
 #include <system_error>
@@ -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<LineColPair, std::vector<const FunctionRecord *>>;
+  using MapT = std::map<LineColPair, std::vector<const FunctionRecord *>>;
   MapT InstantiatedFunctions;
 
 public: