Skip to content

Commit b257eeb

Browse files
committed
Fix/update version check on if to define getindex(ir,ssa)
1 parent 121ec20 commit b257eeb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/stage1/compiler_utils.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ function Base.push!(cfg::CFG, bb::BasicBlock)
77
push!(cfg.index, bb.stmts.start)
88
end
99

10-
Base.getindex(ir::IRCode, ssa::SSAValue) = Core.Compiler.getindex(ir, ssa)
10+
if VERSION < v"1.11.0-DEV.258"
11+
Base.getindex(ir::IRCode, ssa::SSAValue) = Core.Compiler.getindex(ir, ssa)
12+
end
1113

1214
Base.copy(ir::IRCode) = Core.Compiler.copy(ir)
1315

0 commit comments

Comments
 (0)