Skip to content

Commit b3a1a0f

Browse files
authored
Merge pull request #101 from aviatesk/avi/46961
adjust to JuliaLang/julia#46961
2 parents 1e7f451 + 1357aaf commit b3a1a0f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ir/wrap.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ function IRCode(ir::IR)
5858
sps = VERSION > v"1.2-" ? [] : Core.svec()
5959

6060
@static if VERSION > v"1.6-"
61-
stmtinfo = Any[nothing for _ in 1:length(length(stmts))]
61+
@static if isdefined(Core.Compiler, :CallInfo)
62+
stmtinfo = Core.Compiler.CallInfo[Core.Compiler.NoCallInfo() for _ in 1:length(stmts)]
63+
else
64+
stmtinfo = Any[nothing for _ in 1:length(stmts)]
65+
end
6266
stmts = InstructionStream(stmts, types, stmtinfo, lines, flags)
6367
meta = @static VERSION < v"1.9.0-DEV.472" ? [] : Expr[]
6468
IRCode(stmts, cfg, ir.lines, ir.blocks[1].argtypes, meta, sps)

0 commit comments

Comments
 (0)