]> granicus.if.org Git - clang/commitdiff
[OPENMP] Use MapVector instead of DenseMap for stable codegen, NFC.
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 27 Jun 2017 15:46:42 +0000 (15:46 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 27 Jun 2017 15:46:42 +0000 (15:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@306419 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/OpenMPClause.h
lib/CodeGen/CGOpenMPRuntime.cpp

index f977e63e04f6a1f289dea501c2b13144b1e6000f..14e73819f53d3416f967846f58bfb79c6d608a9a 100644 (file)
@@ -20,6 +20,7 @@
 #include "clang/AST/Stmt.h"
 #include "clang/Basic/OpenMPKinds.h"
 #include "clang/Basic/SourceLocation.h"
+#include "llvm/ADT/MapVector.h"
 
 namespace clang {
 
@@ -3001,7 +3002,7 @@ protected:
     // Organize the components by declaration and retrieve the original
     // expression. Original expressions are always the first component of the
     // mappable component list.
-    llvm::DenseMap<ValueDecl *, SmallVector<MappableExprComponentListRef, 8>>
+    llvm::MapVector<ValueDecl *, SmallVector<MappableExprComponentListRef, 8>>
         ComponentListMap;
     {
       auto CI = ComponentLists.begin();
index 8d83255ac139cc912f2d892a79106dfca16bd96b..0a8fd17c3324185811fb8b539d05db47b18e2e96 100644 (file)
@@ -5603,7 +5603,7 @@ public:
     // We have to process the component lists that relate with the same
     // declaration in a single chunk so that we can generate the map flags
     // correctly. Therefore, we organize all lists in a map.
-    llvm::DenseMap<const ValueDecl *, SmallVector<MapInfo, 8>> Info;
+    llvm::MapVector<const ValueDecl *, SmallVector<MapInfo, 8>> Info;
 
     // Helper function to fill the information map for the different supported
     // clauses.