We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec784bf commit f006ea4Copy full SHA for f006ea4
optimizer/fold.go
@@ -20,8 +20,7 @@ func (fold *fold) Exit(node *Node) {
20
// for IntegerNode the type may have been changed from int->float
21
// preserve this information by setting the type after the Patch
22
patchWithType := func(newNode Node, leafType reflect.Type) {
23
- fold.applied = true
24
- Patch(node, newNode)
+ patch(newNode)
25
newNode.SetType(leafType)
26
}
27
0 commit comments