Skip to content

Commit 9ee6baf

Browse files
fix: don't CSE ranges
1 parent 715026d commit 9ee6baf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/code.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -889,6 +889,7 @@ cse!(x::LiteralExpr, ::CSEState) = x
889889

890890
cse!(x::CodegenPrimitive, state::CSEState) = throw(MethodError(cse!, (x, state)))
891891

892+
cse!(x::AbstractRange, ::CSEState) = x
892893
function cse!(x::AbstractArray, state::CSEState)
893894
res = map(Base.Fix2(cse!, state), x)
894895
return res

0 commit comments

Comments
 (0)