We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4befd36 commit 6ce5e10Copy full SHA for 6ce5e10
src/constructors.jl
@@ -66,15 +66,14 @@ function substitute_broadcast(
66
_ciₙ = ci[n]
67
syms[n] = Symbol('%', n)
68
69
- local rhs
70
if _ciₙ isa Core.SSAValue
71
- rhs = syms[_ciₙ.id]
+ push!(lb.args, Expr(:(=), syms[n], syms[_ciₙ.id]))
72
73
elseif _ciₙ isa GlobalRef
74
if _ciₙ.mod === Base || _ciₙ.mod === Core
75
- rhs = lv(_ciₙ.name)
+ push!(lb.args, Expr(:(=), syms[n], lv(_ciₙ.name)))
76
else
77
- rhs = _ciₙ.name
+ push!(lb.args, Expr(:(=), syms[n], _ciₙ.name))
78
end
79
80
elseif _ciₙ isa Expr && _ciₙ.head === :call
@@ -86,16 +85,17 @@ function substitute_broadcast(
86
85
87
add_ci_call!(lb, f, _ciₙ.args, syms, n)
88
89
- continue
+
90
91
- rhs = _ciₙ
+ push!(lb.args, Expr(:(=), syms[n], _ciₙ))
92
93
- push!(lb.args, Expr(:(=), syms[n], rhs))
94
95
ret::Expr = pop!(lb.args)::Expr
96
if Meta.isexpr(ret, :(=), 2)
97
ret = (ret.args[2])::Expr
98
99
esc(Expr(:let, lb, Expr(:block, ret)))
100
101
0 commit comments