mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-12 22:28:22 +00:00
Include vector into these two files to ensure that specializations like
stl_bvector.h are correctly included into *anything* that includes hash_map or hash_set. ext/hash_map includes stl_vector.h directly and leaves out the specializations, causing truly nasty bugs due to inconsistent versions of vector<> being used for vector<bool> in different files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7303 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a259c9be2a
commit
7f90b520b4
@ -42,6 +42,10 @@ using HASH_NAMESPACE::hash_map;
|
||||
using HASH_NAMESPACE::hash_multimap;
|
||||
using HASH_NAMESPACE::hash;
|
||||
|
||||
/* Include vector because ext/hash_map includes stl_vector.h and leaves
|
||||
out specializations like stl_bvector.h, causing link conflicts. */
|
||||
#include <vector>
|
||||
|
||||
#include <Support/HashExtras.h>
|
||||
|
||||
#endif
|
||||
|
@ -41,6 +41,10 @@
|
||||
using HASH_NAMESPACE::hash_set;
|
||||
using HASH_NAMESPACE::hash;
|
||||
|
||||
/* Include vector because ext/hash_set includes stl_vector.h and leaves
|
||||
out specializations like stl_bvector.h, causing link conflicts. */
|
||||
#include <vector>
|
||||
|
||||
#include <Support/HashExtras.h>
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user