]> granicus.if.org Git - clang/commitdiff
[Modules] Fix another pointer keyed set that we iterate over while
authorChandler Carruth <chandlerc@gmail.com>
Fri, 27 Mar 2015 00:01:44 +0000 (00:01 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 27 Mar 2015 00:01:44 +0000 (00:01 +0000)
writing a module to be a set-vector to preserve insertion order.

No test case, found by inspection.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@233335 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Serialization/ASTWriter.h

index 41b1cab75d52efc7597bc0ba289361c698599bc5..bd01fc7df13e718d77f1d07e744baedb4da35879 100644 (file)
@@ -352,7 +352,7 @@ private:
   /// if its primary namespace comes from the chain. If it does, we add the
   /// primary to this set, so that we can write out lexical content updates for
   /// it.
-  llvm::SmallPtrSet<const DeclContext *, 16> UpdatedDeclContexts;
+  llvm::SmallSetVector<const DeclContext *, 16> UpdatedDeclContexts;
 
   /// \brief Keeps track of visible decls that were added in DeclContexts
   /// coming from another AST file.