From c6aa7fa9803eddf6ef675472bdb5b915c0fe04a8 Mon Sep 17 00:00:00 2001 From: Yingbo Ma Date: Thu, 22 Apr 2021 17:40:57 -0400 Subject: [PATCH] Fix the transform on the rhs expr --- src/variable.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/variable.jl b/src/variable.jl index 057460970..c2120b782 100644 --- a/src/variable.jl +++ b/src/variable.jl @@ -160,8 +160,8 @@ function construct_vars(v, type, call_args, val, prop, transform, isruntime) var_name = v expr = construct_var(isruntime ? var_name : Meta.quot(var_name), type, call_args, val, prop) end - rhs = transform(expr) lhs = isruntime ? gensym(var_name) : var_name + rhs = :($transform($expr)) lhs, :($lhs = $rhs) end