Skip to content

Commit d14936b

Browse files
author
KDr2
committed
give a warning when find an unknown ir code
1 parent c9673cd commit d14936b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tapedfunction.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,8 @@ function intercept(ir; recorder=:run_and_record!)
234234
elseif Meta.isexpr(st.expr, :new)
235235
args = st.expr.args
236236
ir[x] = IRTools.xcall(@__MODULE__, :run_and_record_new!, tape, args...)
237+
else
238+
@warn "Unknown IR code: " st
237239
end
238240
end
239241
# the real return value will be in the last instruction on the tape

0 commit comments

Comments
 (0)