diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2015-03-25 01:02:12 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2015-03-25 01:02:12 +0000 |
commit | 75fc6a7f61d778477e91a2a2dbdddf435b0c25fd (patch) | |
tree | 3dd884bfdceef9657354b401a341845b4e6a54f0 /clang/include | |
parent | c07d1e23fb25688f6282f114deb9fc6f9e6985c9 (diff) | |
download | bcm5719-llvm-75fc6a7f61d778477e91a2a2dbdddf435b0c25fd.tar.gz bcm5719-llvm-75fc6a7f61d778477e91a2a2dbdddf435b0c25fd.zip |
[Modules] Make the DeclUpdates map be processed in insertion order.
This fixes my stress tests non-determinism so far. However, I've not
started playing with templates, friends, or terrible macros. I've found
at least two more seeming instabilities and am just waiting for a test
case to actually trigger them.
llvm-svn: 233162
Diffstat (limited to 'clang/include')
-rw-r--r-- | clang/include/clang/Serialization/ASTWriter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/include/clang/Serialization/ASTWriter.h b/clang/include/clang/Serialization/ASTWriter.h index 1d872a8c051..d120c98553f 100644 --- a/clang/include/clang/Serialization/ASTWriter.h +++ b/clang/include/clang/Serialization/ASTWriter.h @@ -321,7 +321,7 @@ private: }; typedef SmallVector<DeclUpdate, 1> UpdateRecord; - typedef llvm::DenseMap<const Decl *, UpdateRecord> DeclUpdateMap; + typedef llvm::MapVector<const Decl *, UpdateRecord> DeclUpdateMap; /// \brief Mapping from declarations that came from a chained PCH to the /// record containing modifications to them. DeclUpdateMap DeclUpdates; |