From: Chandler Carruth Date: Fri, 27 Mar 2015 00:01:44 +0000 (+0000) Subject: [Modules] Fix another pointer keyed set that we iterate over while X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9322310bbaeb174b23a750d2f42479deacef316d;p=clang [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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@233335 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Serialization/ASTWriter.h b/include/clang/Serialization/ASTWriter.h index 41b1cab75d..bd01fc7df1 100644 --- a/include/clang/Serialization/ASTWriter.h +++ b/include/clang/Serialization/ASTWriter.h @@ -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 UpdatedDeclContexts; + llvm::SmallSetVector UpdatedDeclContexts; /// \brief Keeps track of visible decls that were added in DeclContexts /// coming from another AST file.