Skip to content

Commit 219e674

Browse files
authored
Some misc compiler-related code cleanup (JuliaLang#56540)
I'm cleaning up some downstream packages following the compiler split and these were commonly found in compat code. One is the `Base.copy` method for Phi(C)Node, which we had an implementation for, just not wired up to `copy`. The other is `block_for_inst` with an SSAValue, which exists for IncremetalCompact, but not IRCode, so add the latter for consistency.
1 parent bf3afcd commit 219e674

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ssair/ir.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@ function block_for_inst(ir::IRCode, inst::Int)
482482
end
483483
block_for_inst(ir.cfg, inst)
484484
end
485+
block_for_inst(ir::IRCode, ssa::SSAValue) = block_for_inst(ir, ssa.id)
485486

486487
function getindex(ir::IRCode, s::SSAValue)
487488
id = s.id

0 commit comments

Comments
 (0)