Merge remote-tracking branch 'origin/trunk' into gen-dev/remove-results

This commit is contained in:
Brendan Hansknecht 2021-11-27 16:57:00 -08:00
commit 55f0329e5c
5 changed files with 59 additions and 12 deletions

View file

@ -497,7 +497,7 @@ impl<
// move return value to dst.
match ret_layout {
Layout::Builtin(Builtin::Int(IntWidth::I64 | IntWidth::U64)) => {
Layout::Builtin(Builtin::Int(IntWidth::I64 | IntWidth::U64) | Builtin::Bool) => {
let dst_reg = self.claim_general_reg(dst);
ASM::mov_reg64_reg64(&mut self.buf, dst_reg, CC::GENERAL_RETURN_REGS[0]);
}