mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-16 09:17:35 +02:00
Do not inline functions w/mutating primitives
This commit is contained in:
parent
62559ee2c0
commit
045a86dc44
1 changed files with 3 additions and 0 deletions
|
@ -1249,6 +1249,9 @@
|
|||
;; If function needs CPS, fail right away
|
||||
(if (or (not (prim? fnc)) ;; Eventually need to handle user functions, too
|
||||
(prim:cont? fnc) ;; Needs CPS
|
||||
(prim:mutates? fnc) ;; This is too conservative, but basically
|
||||
;; there are restrictions about optimizing
|
||||
;; args to a mutator, so reject them for now
|
||||
)
|
||||
(fail))
|
||||
;; Otherwise, check for valid args
|
||||
|
|
Loading…
Add table
Reference in a new issue