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:
parent
b930ff985e
commit
b21a5db27e
1 changed files with 1 additions and 1 deletions
|
|
@ -490,7 +490,7 @@
|
||||||
(if (seq types)
|
(if (seq types)
|
||||||
(let [prim (mem/primitive-type (first types))]
|
(let [prim (mem/primitive-type (first types))]
|
||||||
(recur (rest types)
|
(recur (rest types)
|
||||||
(conj acc [[(load-instructions prim) idx]
|
(conj acc [[(load-instructions prim :aload) idx]
|
||||||
(to-object-asm (first types))])
|
(to-object-asm (first types))])
|
||||||
(cond-> (inc idx)
|
(cond-> (inc idx)
|
||||||
(double-sized? prim)
|
(double-sized? prim)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue