From: Chandler Carruth Date: Thu, 26 Mar 2015 23:58:11 +0000 (+0000) Subject: [Modules] Fix an obvious lack of deterministic ordering when processing X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0becc94a795fcf5615c3424fd98e2f8d839e78c8;p=clang [Modules] Fix an obvious lack of deterministic ordering when processing rewritten decls for Objective-C modules. Found by inspection and completely obvious, so no test case. Many of the remaining determinism fixes won't have precise test cases at this point, but these are the kinds of things we wouldn't ask for a specific test of during code review but ask authors to fix. The functionality isn't changing, and should (he he!) already be tested. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@233333 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Serialization/ASTWriter.h b/include/clang/Serialization/ASTWriter.h index 6720141fb9..d3885b2557 100644 --- a/include/clang/Serialization/ASTWriter.h +++ b/include/clang/Serialization/ASTWriter.h @@ -358,7 +358,7 @@ private: /// coming from another AST file. SmallVector UpdatingVisibleDecls; - typedef llvm::SmallPtrSet DeclsToRewriteTy; + typedef llvm::SmallSetVector DeclsToRewriteTy; /// \brief Decls that will be replaced in the current dependent AST file. DeclsToRewriteTy DeclsToRewrite;