Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Shuhei Kadowaki <40514306+aviatesk@users.noreply.github.com>
  • Loading branch information
vtjnash and aviatesk committed Feb 8, 2024
1 parent 50cbe14 commit 24772cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion base/compiler/utilities.jl
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ end
function find_ssavalue_uses!(e::PhiNode, uses::Vector{BitSet}, line::Int)
values = e.values
for i = 1:length(values)
isassigned(values) || continue
isassigned(values, i) || continue
val = values[i]
if isa(val, SSAValue)
push!(uses[val.id], line)
Expand Down
1 change: 1 addition & 0 deletions test/compiler/interpreter_exec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ let m = Meta.@lower 1 + 1
src.ssavaluetypes = nstmts
src.ssaflags = fill(UInt8(0x00), nstmts)
src.codelocs = fill(Int32(1), nstmts)
@assert !src.inferred
Core.Compiler.verify_ir(Core.Compiler.inflate_ir(src))
global test29262 = true
@test :a === @eval $m
Expand Down

0 comments on commit 24772cc

Please sign in to comment.