File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1595,6 +1595,7 @@ std::vector<TxGraph::Ref*> TxGraphImpl::GetAncestorsUnion(std::span<const Ref* c
1595
1595
std::vector<std::pair<Cluster*, DepGraphIndex>> matches;
1596
1596
matches.reserve (args.size ());
1597
1597
for (auto arg : args) {
1598
+ Assume (arg);
1598
1599
// Skip empty Refs.
1599
1600
if (GetRefGraph (*arg) == nullptr ) continue ;
1600
1601
Assume (GetRefGraph (*arg) == this );
@@ -1627,6 +1628,7 @@ std::vector<TxGraph::Ref*> TxGraphImpl::GetDescendantsUnion(std::span<const Ref*
1627
1628
std::vector<std::pair<Cluster*, DepGraphIndex>> matches;
1628
1629
matches.reserve (args.size ());
1629
1630
for (auto arg : args) {
1631
+ Assume (arg);
1630
1632
// Skip empty Refs.
1631
1633
if (GetRefGraph (*arg) == nullptr ) continue ;
1632
1634
Assume (GetRefGraph (*arg) == this );
Original file line number Diff line number Diff line change @@ -144,11 +144,11 @@ class TxGraph
144
144
virtual std::vector<Ref*> GetDescendants (const Ref& arg, bool main_only = false ) noexcept = 0;
145
145
/* * Like GetAncestors, but return the Refs for all transactions in the union of the provided
146
146
* arguments' ancestors (each transaction is only reported once). Refs that do not exist in
147
- * the queried graph are ignored. */
147
+ * the queried graph are ignored. Null refs are not allowed. */
148
148
virtual std::vector<Ref*> GetAncestorsUnion (std::span<const Ref* const > args, bool main_only = false ) noexcept = 0;
149
149
/* * Like GetDescendants, but return the Refs for all transactions in the union of the provided
150
150
* arguments' descendants (each transaction is only reported once). Refs that do not exist in
151
- * the queried graph are ignored. */
151
+ * the queried graph are ignored. Null refs are not allowed. */
152
152
virtual std::vector<Ref*> GetDescendantsUnion (std::span<const Ref* const > args, bool main_only = false ) noexcept = 0;
153
153
/* * Get the total number of transactions in the graph. If main_only is false and a staging
154
154
* graph exists, it is queried; otherwise the main graph is queried. This is available even
You can’t perform that action at this time.
0 commit comments