Skip to content

Commit

Permalink
Merge pull request #101 from aviatesk/avi/46961
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeInnes authored Oct 10, 2022
2 parents 1e7f451 + 1357aaf commit b3a1a0f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ir/wrap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ function IRCode(ir::IR)
sps = VERSION > v"1.2-" ? [] : Core.svec()

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

2 comments on commit b3a1a0f

@MikeInnes
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error while trying to register: "Tag with name v0.4.6 already exists and points to a different commit"

Please sign in to comment.