Skip to content

Commit

Permalink
Update postprocessors.jl (#114)
Browse files Browse the repository at this point in the history
* Update postprocessors.jl

* Formatter

---------

Co-authored-by: lkdvos <[email protected]>
  • Loading branch information
maartenvd and lkdvos authored Apr 7, 2024
1 parent fe3c9c2 commit 3398924
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/planar/postprocessors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3398924

Please sign in to comment.