Add todo about potential bug with nil as a primitive argument
This commit is contained in:
parent
319bb3a33b
commit
75bbe11971
1 changed files with 3 additions and 0 deletions
|
|
@ -247,6 +247,9 @@
|
||||||
[downcall arg-types ret-type]
|
[downcall arg-types ret-type]
|
||||||
(let [;; Complexity of types
|
(let [;; Complexity of types
|
||||||
const-args? (or (vector? arg-types) (nil? arg-types))
|
const-args? (or (vector? arg-types) (nil? arg-types))
|
||||||
|
;; FIXME(Joshua): there's a potential bug where `nil` as a pointer
|
||||||
|
;; argument is not converted to [[MemoryAddress/NULL]] if it's
|
||||||
|
;; considered primitive.
|
||||||
simple-args? (when const-args?
|
simple-args? (when const-args?
|
||||||
(every? mem/primitive? arg-types))
|
(every? mem/primitive? arg-types))
|
||||||
const-ret? (s/valid? ::mem/type ret-type)
|
const-ret? (s/valid? ::mem/type ret-type)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue