Skip to content

Commit 7d73c27

Browse files
committed
translate static_parameter expr
1 parent 38376c3 commit 7d73c27

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/tapedfunction.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,9 @@ function translate!!(var::IRVar, line::Expr,
439439
end
440440
return Instruction(identity, (_bind_fn(rhs),), _bind_fn(lhs))
441441
end
442+
elseif head === :static_parameter
443+
v = ir.parent.sparam_vals[line.args[1]]
444+
return Instruction(identity, (_bind_fn(v),), _bind_fn(var))
442445
else
443446
@error "Unknown Expression: " typeof(var) var typeof(line) line
444447
throw(ErrorException("Unknown Expression"))

0 commit comments

Comments
 (0)