Skip to content

Commit

Permalink
Revert to super traversal
Browse files Browse the repository at this point in the history
  • Loading branch information
jad-hamza committed Mar 9, 2021
1 parent 304b5a2 commit 9574673
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ trait ReturnElimination
addExpression(currentId, expr)

case s.Operator(es, _) =>
es.map(traverse(_, currentId))
super.traverse(expr, currentId)

if (exprHasReturn.contains(currentId) && es.exists(exprHasReturn(currentId)))
addExpression(currentId, expr)
Expand Down

0 comments on commit 9574673

Please sign in to comment.