mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Use alloca_pair instead of make_pair for literals
This commit is contained in:
parent
5752f6ace5
commit
5f760e4a2c
1 changed files with 2 additions and 2 deletions
|
@ -398,7 +398,7 @@
|
|||
(create-cons
|
||||
(lambda (cvar a b)
|
||||
(c-code/vars
|
||||
(string-append "make_pair(" cvar "," (c:body a) "," (c:body b) ");")
|
||||
(string-append "alloca_pair(" cvar "," (c:body a) "," (c:body b) ");")
|
||||
(append (c:allocs a) (c:allocs b))))
|
||||
)
|
||||
(_c-compile-scalars
|
||||
|
@ -416,7 +416,7 @@
|
|||
(_c-compile-scalars (cdr args)))))
|
||||
(set! num-args (+ 1 num-args))
|
||||
(c-code/vars
|
||||
(string-append "&" cvar-name)
|
||||
cvar-name ;; Not needed with alloca - (string-append "&" cvar-name)
|
||||
(append
|
||||
(c:allocs cell)
|
||||
(list (c:body cell))))))))))
|
||||
|
|
Loading…
Add table
Reference in a new issue