Skip to content

Commit 48ea44b

Browse files
committed
Be explicit about :max branch in encode_reduce_body
1 parent 449fe85 commit 48ea44b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/compiler/intrinsics/core.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,14 +624,14 @@ function encode_reduce_body(cb, type, acc, elem, op::Symbol, ::Type{T}) where T
624624
if T <: AbstractFloat
625625
if op == :add
626626
encode_AddFOp!(cb, type, acc, elem)
627-
else # :max
627+
elseif op == :max
628628
encode_MaxFOp!(cb, type, acc, elem)
629629
end
630630
else # Integer
631631
signedness = T <: Signed ? SignednessSigned : SignednessUnsigned
632632
if op == :add
633633
encode_AddIOp!(cb, type, acc, elem)
634-
else # :max
634+
elseif op == :max
635635
encode_MaxIOp!(cb, type, acc, elem; signedness)
636636
end
637637
end

0 commit comments

Comments
 (0)