Skip to content

Commit 82c0897

Browse files
committed
Dependencies: Fix uninitialized memory in SourceFileDepGraphNode
1 parent d59a76c commit 82c0897

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/swift/AST/FineGrainedDependencies.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -689,15 +689,15 @@ class SourceFileDepGraphNode : public DepGraphNode {
689689
/// True iff a Decl exists for this node.
690690
/// If a provides and a depends in the existing system both have the same key,
691691
/// only one SourceFileDepGraphNode is emitted.
692-
bool isProvides;
692+
bool isProvides = false;
693693

694694
friend ::llvm::yaml::MappingContextTraits<SourceFileDepGraphNode,
695695
SourceFileDepGraph>;
696696

697697
public:
698698
/// When the driver imports a node create an uninitialized instance for
699699
/// deserializing.
700-
SourceFileDepGraphNode() : DepGraphNode(), sequenceNumber(~0) {}
700+
SourceFileDepGraphNode() : DepGraphNode() {}
701701

702702
/// Used by the frontend to build nodes.
703703
SourceFileDepGraphNode(DependencyKey key, Optional<StringRef> fingerprint,

0 commit comments

Comments
 (0)