Add bools to array building

This commit is contained in:
Ahmad Sattar 2023-02-04 01:06:34 +01:00
parent 6a92aed8a2
commit e8f40cdbb1
No known key found for this signature in database
GPG key ID: 457C18819D9C9570
2 changed files with 42 additions and 4 deletions

View file

@ -1850,7 +1850,7 @@ impl<
};
// TODO: Expand to all types.
match self.layout_interner.get(*elem_layout) {
Layout::Builtin(Builtin::Int(IntWidth::I64 | IntWidth::U64)) => {
Layout::Builtin(Builtin::Int(IntWidth::I64 | IntWidth::U64) | Builtin::Bool) => {
let sym_reg = self
.storage_manager
.load_to_general_reg(&mut self.buf, elem_sym);