Skip to content

Commit 74d5208

Browse files
committed
fix ir.stmts.inst
1 parent c7bcc68 commit 74d5208

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/stage1/recurse.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,8 @@ function optic_transform!(ci, mi, nargs, N)
273273
# SSA conversion
274274
meth = mi.def::Method
275275
domtree = construct_domtree(ir.cfg.blocks)
276-
defuse_insts = scan_slot_def_use(Int(meth.nargs), ci, ir.stmts.inst)
276+
stmts = VERSION < v"1.11.0-DEV.258" ? ir.stmts.inst : ir.stmts.stmt
277+
defuse_insts = scan_slot_def_use(Int(meth.nargs), ci, stmts)
277278
ci.ssavaluetypes = Any[Any for i = 1:ci.ssavaluetypes]
278279
ir = construct_ssa!(ci, ir, domtree, defuse_insts, ci.slottypes, SimpleInferenceLattice.instance)
279280
ir = compact!(ir)

0 commit comments

Comments
 (0)