Skip to content

Commit da286a2

Browse files
authored
CLJS JIT: recognise hoisted const refs in spill (#1075)
1 parent 62ce917 commit da286a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sci/impl/jit.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@
288288
"Capture e in a temp unless it is immutable (const ref, temp, literal).
289289
Used where evaluation order relative to later statements matters."
290290
[st e]
291-
(if (re-matches #"C\[\d+\]|t\d+|null|true|false|\(-?[0-9.e+-]+\)" e)
291+
(if (re-matches #"c\d+|t\d+|null|true|false|\(-?[0-9.e+-]+\)" e)
292292
e
293293
(let [t (tmp! st)]
294294
(stmt! st "var " t "=" e ";")

0 commit comments

Comments
 (0)