Skip to content

Commit 46c4a75

Browse files
test: update test to account for new CSE
1 parent efb4d61 commit 46c4a75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/code.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ SymbolicUtils.Code.cse_inside_expr(sym, ::typeof(foo), args...) = false
285285
exfoo = term(foo, ex1; type = Real)
286286
ex2 = ex1 + exfoo
287287
letblock = cse(ex2)
288-
ex3 = letblock.body
288+
ex3 = Code.rhs(last(letblock.pairs))
289289
@test any(isequal(exfoo), arguments(ex3))
290290
end
291291

0 commit comments

Comments
 (0)