Skip to content

Commit 80217c3

Browse files
committed
Add missing returns
1 parent c070363 commit 80217c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/codegen/lower_threads.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,12 @@ end
9595
@generated function _choose_num_blocks(M::UInt, ::StaticInt{U}, nt, ::StaticInt{NTMAX}) where {U,NTMAX}
9696
# valid range for nt: 2 ≤ nt ≤ NTMAX
9797
if NTMAX > 8
98-
quote
98+
return quote
9999
$(Expr(:meta,:inline))
100100
choose_num_blocks_table(M, StaticInt{$U}(), nt, StaticInt{$NTMAX}())
101101
end
102102
elseif NTMAX == 2 # `nt` must be `2`
103-
quote
103+
return quote
104104
$(Expr(:meta,:inline))
105105
choose_num_blocks(M, StaticInt{$U}(), StaticInt{$NTMAX}())
106106
end

0 commit comments

Comments
 (0)