Skip to content

Commit 4d894fa

Browse files
committed
internal/core/adt: allow unprocessed
Needed for mem management. Signed-off-by: Marcel van Lohuizen <[email protected]> Change-Id: I5e1d629e038b27b6c31982b9ad1ec178fb83692b Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1218183 Unity-Result: CUE porcuepine <[email protected]> Reviewed-by: Daniel Martí <[email protected]> TryBot-Result: CUEcueckoo <[email protected]>
1 parent 521d442 commit 4d894fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/core/adt/states.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,8 @@ func (v *Vertex) allChildConjunctsKnown() bool {
318318
return true
319319
}
320320

321-
if v.Status() == finalized {
321+
// TODO(refcount): allow partial processed?
322+
if v.Status() == finalized || (v.state == nil && v.status != unprocessed) {
322323
// This can happen, for instance, if this is called on a parent of a
323324
// rooted node that is marked as a parent for a dynamic node.
324325
// In practice this should be handled by the caller, but we add this

0 commit comments

Comments
 (0)