Skip to content

Commit 5b3560e

Browse files
committed
handle :(let x = s) where 's' is a symbol (i.e., rather than an Expr)
1 parent 5f71046 commit 5b3560e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "LoopVectorization"
22
uuid = "bdcacae8-1622-11e9-2a5c-532679323890"
33
authors = ["Chris Elrod <[email protected]>"]
4-
version = "0.12.101"
4+
version = "1.12.102"
55

66
[deps]
77
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"

src/modeling/graphs.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1283,7 +1283,9 @@ function Base.push!(ls::LoopSet, ex::Expr, elementbytes::Int, position::Int, mpr
12831283
@assert localbody.head === :(=)
12841284
@assert length(localbody.args) == 2
12851285
LHS = (localbody.args[1])::Symbol
1286-
RHS = push!(ls, (localbody.args[2]), elementbytes, position, mpref)
1286+
RHS_1 = localbody.args[2]
1287+
RHS_1 isa Symbol && return push!(ls, localbody, elementbytes, position, mpref)
1288+
RHS = push!(ls, RHS_1, elementbytes, position, mpref)
12871289
if isstore(RHS)
12881290
RHS
12891291
else

0 commit comments

Comments
 (0)