r233335 - [Modules] Fix another pointer keyed set that we iterate over while

Chandler Carruth chandlerc at gmail.com
Thu Mar 26 17:01:44 PDT 2015


Author: chandlerc
Date: Thu Mar 26 19:01:44 2015
New Revision: 233335

URL: http://llvm.org/viewvc/llvm-project?rev=233335&view=rev
Log:
[Modules] Fix another pointer keyed set that we iterate over while
writing a module to be a set-vector to preserve insertion order.

No test case, found by inspection.

Modified:
    cfe/trunk/include/clang/Serialization/ASTWriter.h

Modified: cfe/trunk/include/clang/Serialization/ASTWriter.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Serialization/ASTWriter.h?rev=233335&r1=233334&r2=233335&view=diff
==============================================================================
--- cfe/trunk/include/clang/Serialization/ASTWriter.h (original)
+++ cfe/trunk/include/clang/Serialization/ASTWriter.h Thu Mar 26 19:01:44 2015
@@ -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.





More information about the cfe-commits mailing list