Skip to content

Commit

Permalink
Update DecisionTree.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
LPeter1997 committed Oct 5, 2023
1 parent 0e0c159 commit fc9422f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Draco.Compiler/Internal/FlowAnalysis/DecisionTree.cs
Original file line number Diff line number Diff line change
Expand Up @@ -342,10 +342,10 @@ private void Build(Node node)
{
// Specialize to the pattern
var child = this.Specialize(node, pat);
// We covered the value, subtract
uncoveredDomain.SubtractPattern(pat);
// Add as child
node.Children.Add(new(pat, child));
// We covered the value, subtract
uncoveredDomain.SubtractPattern(pat);
}

// If not complete, do defaulting
Expand Down

0 comments on commit fc9422f

Please sign in to comment.