fix: default to an aload instruction for upcall

this allows non-primitive types

prior to this commit the library would generate invalid bytecode with
a `nil` instruction
This commit is contained in:
blak3mill3r 2021-10-25 03:05:14 +00:00
parent b930ff985e
commit b21a5db27e

View file

@ -490,7 +490,7 @@
(if (seq types)
(let [prim (mem/primitive-type (first types))]
(recur (rest types)
(conj acc [[(load-instructions prim) idx]
(conj acc [[(load-instructions prim :aload) idx]
(to-object-asm (first types))])
(cond-> (inc idx)
(double-sized? prim)