diff --git a/src/compiler/interp.jl b/src/compiler/interp.jl index f3fe4a21..2e307006 100644 --- a/src/compiler/interp.jl +++ b/src/compiler/interp.jl @@ -15,6 +15,7 @@ end function interp(ctx, f, xs...) g = graph(f) + g ≠ nothing && iscyclic(g) && error("Can't interpret cyclic graph") @icatch(ctx, g ≠ nothing ? interpret(ctx, reifyparams(g), xs...) : f(xs...))