array literal arg loading was moved

This commit is contained in:
Folkert 2023-05-02 21:08:28 +02:00
parent 4ec99764cb
commit 35c507a33f
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -502,9 +502,6 @@ trait Backend<'a> {
}) {
syms.push(*sym);
}
// TODO: This could be a huge waste.
// We probably want to call this within create_array, one element at a time.
self.load_literal_symbols(syms.into_bump_slice());
self.create_array(sym, elem_layout, elems);
}
Expr::Struct(fields) => {