Skip to content

Commit d54aa5d

Browse files
authored
Merge pull request #32413 from slavapestov/dep-graph-determinism-fix
Dependencies: Change SourceFileDepGraphNode::defsIDependUpon into a SetVector
2 parents d76a8b9 + 337eae4 commit d54aa5d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/swift/AST/FineGrainedDependencies.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "swift/Basic/Range.h"
2020
#include "swift/Basic/ReferenceDependencyKeys.h"
2121
#include "llvm/ADT/Hashing.h"
22+
#include "llvm/ADT/SetVector.h"
2223
#include "llvm/Support/MD5.h"
2324
#include "llvm/Support/MemoryBuffer.h"
2425
#include "llvm/Support/YAMLParser.h"
@@ -684,7 +685,7 @@ class SourceFileDepGraphNode : public DepGraphNode {
684685
size_t sequenceNumber = ~0;
685686

686687
/// Holds the sequence numbers of definitions I depend upon.
687-
std::unordered_set<size_t> defsIDependUpon;
688+
llvm::SetVector<size_t> defsIDependUpon;
688689

689690
/// True iff a Decl exists for this node.
690691
/// If a provides and a depends in the existing system both have the same key,

0 commit comments

Comments
 (0)