Skip to content

Commit c7bcc68

Browse files
committed
remove getindex definition on 1.11
1 parent 9b2a506 commit c7bcc68

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/stage1/compiler_utils.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +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) =
11-
Core.Compiler.getindex(ir, ssa)
10+
if VERSION <= v"1.11.0-DEV.116"
11+
Base.getindex(ir::IRCode, ssa::SSAValue) = Core.Compiler.getindex(ir, ssa)
12+
end
1213

1314
Base.copy(ir::IRCode) = Core.Compiler.copy(ir)
1415

0 commit comments

Comments
 (0)