Previously, the body of some vector constructors were added to the wrong
function signature, and the body of matrix constructors were just being
dumped in the main instruction stream.
declarations);
f->add_signature(vec_sig);
- generate_vec_body_from_N_scalars(&sig->body, declarations);
+ generate_vec_body_from_N_scalars(&vec_sig->body, declarations);
} else {
assert(types[i].is_matrix());
declarations);
f->add_signature(mat_sig);
- generate_mat_body_from_N_scalars(instructions, declarations);
+ generate_mat_body_from_N_scalars(&mat_sig->body, declarations);
}
}
}