Skip to content

Commit df27e4a

Browse files
committed
add missing return
1 parent f01adb8 commit df27e4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vectorizationbase_compat/contract_pass.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ function mulexpr(
2525
)::Tuple{ProdArg,ProdArg}
2626
a = (mulexargs[1])::ProdArg
2727
Nexpr = length(mulexargs)
28-
Nexpr == 2 && (a, mulexargs[2]::ProdArg)
29-
Nexpr != 3 && (a, mul_fast_expr(mulexargs))
28+
Nexpr == 2 && return (a, mulexargs[2]::ProdArg)
29+
Nexpr != 3 && return (a, mul_fast_expr(mulexargs))
3030
# We'll calc the product between the guesstimated cheaper two args first, for better out of order execution
3131
b = (mulexargs[2])::ProdArg
3232
c = (mulexargs[3])::ProdArg

0 commit comments

Comments
 (0)