]> granicus.if.org Git - clang/commitdiff
[Modules] Fix an obvious lack of deterministic ordering when processing
authorChandler Carruth <chandlerc@gmail.com>
Thu, 26 Mar 2015 23:58:11 +0000 (23:58 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 26 Mar 2015 23:58:11 +0000 (23:58 +0000)
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

include/clang/Serialization/ASTWriter.h

index 6720141fb91bfcac0c1b01ccf3341effad325823..d3885b2557d7c5a905086277c272d14f572a54ce 100644 (file)
@@ -358,7 +358,7 @@ private:
   /// coming from another AST file.
   SmallVector<const Decl *, 16> UpdatingVisibleDecls;
 
-  typedef llvm::SmallPtrSet<const Decl *, 16> DeclsToRewriteTy;
+  typedef llvm::SmallSetVector<const Decl *, 16> DeclsToRewriteTy;
   /// \brief Decls that will be replaced in the current dependent AST file.
   DeclsToRewriteTy DeclsToRewrite;