Skip to content

Commit eb7acb0

Browse files
committed
fix inline const
1 parent 4414189 commit eb7acb0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/passes.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ function inline_const!(ir::IRCode)
141141
@case Expr(:call, f, args...)
142142
new_stmt = Expr(:call, f, map(eval_global, args)...)
143143
sig = Core.Compiler.call_sig(ir, new_stmt)
144+
sig === nothing && continue
144145
if is_const_call_inlineable(sig)
145146
fargs = anymap(x::Const -> x.val, sig.atypes[2:end])
146147
val = sig.f(fargs...)

0 commit comments

Comments
 (0)