From 33989241fef9cce1ad01ad33ba1498260a9f71d9 Mon Sep 17 00:00:00 2001 From: maartenvd Date: Sun, 7 Apr 2024 09:01:54 +0200 Subject: [PATCH] Update postprocessors.jl (#114) * Update postprocessors.jl * Formatter --------- Co-authored-by: lkdvos --- src/planar/postprocessors.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/planar/postprocessors.jl b/src/planar/postprocessors.jl index 7e9bd8e5..69100f1a 100644 --- a/src/planar/postprocessors.jl +++ b/src/planar/postprocessors.jl @@ -5,7 +5,8 @@ # to correct for this by adding the `istemp = true` flag. function _annotate_temporaries(ex, temporaries) if isexpr(ex, :(=)) && isexpr(ex.args[2], :call) && - ex.args[2].args[1] ∈ (:tensoralloc_add, :tensoralloc_contract) + ex.args[2].args[1] ∈ + (GlobalRef(TO, :tensoralloc_add), GlobalRef(TO, :tensoralloc_contract)) lhs = ex.args[1] i = findfirst(==(lhs), temporaries) if i !== nothing