@@ -514,21 +514,21 @@ end
514514 elseif isa (stmt, GotoIfNot)
515515 op == 1 || throw (BoundsError ())
516516 stmt = GotoIfNot (v, stmt. dest)
517+ elseif isa (stmt, ReturnNode)
518+ op == 1 || throw (BoundsError ())
519+ stmt = ReturnNode (v)
517520 elseif isa (stmt, EnterNode)
518521 op == 1 || throw (BoundsError ())
519522 stmt = EnterNode (stmt. catch_dest, v)
520- elseif isa (stmt, ReturnNode)
521- op == 1 || throw (BoundsError ())
522- stmt = typeof (stmt)(v)
523523 elseif isa (stmt, Union{AnySSAValue, GlobalRef})
524524 op == 1 || throw (BoundsError ())
525525 stmt = v
526526 elseif isa (stmt, UpsilonNode)
527527 op == 1 || throw (BoundsError ())
528- stmt = typeof (stmt) (v)
528+ stmt = UpsilonNode (v)
529529 elseif isa (stmt, PiNode)
530530 op == 1 || throw (BoundsError ())
531- stmt = typeof (stmt) (v, stmt. typ)
531+ stmt = PiNode (v, stmt. typ)
532532 elseif isa (stmt, PhiNode)
533533 op > length (stmt. values) && throw (BoundsError ())
534534 isassigned (stmt. values, op) || throw (BoundsError ())
0 commit comments