Skip to content

Commit 24772cc

Browse files
vtjnashaviatesk
andauthored
Apply suggestions from code review
Co-authored-by: Shuhei Kadowaki <[email protected]>
1 parent 50cbe14 commit 24772cc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

base/compiler/utilities.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ end
441441
function find_ssavalue_uses!(e::PhiNode, uses::Vector{BitSet}, line::Int)
442442
values = e.values
443443
for i = 1:length(values)
444-
isassigned(values) || continue
444+
isassigned(values, i) || continue
445445
val = values[i]
446446
if isa(val, SSAValue)
447447
push!(uses[val.id], line)

test/compiler/interpreter_exec.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ let m = Meta.@lower 1 + 1
2323
src.ssavaluetypes = nstmts
2424
src.ssaflags = fill(UInt8(0x00), nstmts)
2525
src.codelocs = fill(Int32(1), nstmts)
26+
@assert !src.inferred
2627
Core.Compiler.verify_ir(Core.Compiler.inflate_ir(src))
2728
global test29262 = true
2829
@test :a === @eval $m

0 commit comments

Comments
 (0)