Skip to content

Dependencies: Change SourceFileDepGraphNode::defsIDependUpon into a SetVector #32413

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 17, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion include/swift/AST/FineGrainedDependencies.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "swift/Basic/Range.h"
#include "swift/Basic/ReferenceDependencyKeys.h"
#include "llvm/ADT/Hashing.h"
#include "llvm/ADT/SetVector.h"
#include "llvm/Support/MD5.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/YAMLParser.h"
Expand Down Expand Up @@ -684,7 +685,7 @@ class SourceFileDepGraphNode : public DepGraphNode {
size_t sequenceNumber = ~0;

/// Holds the sequence numbers of definitions I depend upon.
std::unordered_set<size_t> defsIDependUpon;
llvm::SetVector<size_t> defsIDependUpon;

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