Skip to content

Commit 9d5cb64

Browse files
committed
Adapt to base changes
1 parent 85996ee commit 9d5cb64

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/stage1/recurse.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,13 @@ function transform!(ci, meth, nargs, sparams, N)
262262

263263
# SSA conversion
264264
domtree = construct_domtree(ir.cfg.blocks)
265-
defuse_insts = scan_slot_def_use(meth.nargs-1, ci, ir.stmts.inst)
265+
defuse_insts = scan_slot_def_use(VERSION >= v"1.8.0-DEV.267" ? Int(meth.nargs) : meth.nargs-1, ci, ir.stmts.inst)
266266
ci.ssavaluetypes = Any[Any for i = 1:ci.ssavaluetypes]
267-
ir = construct_ssa!(ci, ir, domtree, defuse_insts, nargs, Any[Any for i = 1:length(slotnames)])
267+
if VERSION >= v"1.8.0-DEV.267"
268+
ir = construct_ssa!(ci, ir, domtree, defuse_insts, Any[Any for i = 1:length(slotnames)])
269+
else
270+
ir = construct_ssa!(ci, ir, domtree, defuse_insts, nargs, Any[Any for i = 1:length(slotnames)])
271+
end
268272
ir = compact!(ir)
269273
cfg = ir.cfg
270274

0 commit comments

Comments
 (0)