docs: Fix typo (#5620)

This commit is contained in:
Saúl Cabrera
2023-01-23 10:05:33 -05:00
committed by GitHub
parent 69cd0a6b1a
commit 0e6e802c34

View File

@@ -430,7 +430,7 @@ impl ABIMachineSpec for AArch64MachineDeps {
} else {
let scratch2 = writable_tmp2_reg();
assert_ne!(scratch2.to_reg(), from_reg);
// `gen_add_imm` is only ever called after register allocation has take place, and as a
// `gen_add_imm` is only ever called after register allocation has taken place, and as a
// result it's ok to reuse the scratch2 register here. If that changes, we'll need to
// plumb through a way to allocate temporary virtual registers
insts.extend(Inst::load_constant(scratch2, imm.into(), &mut |_| scratch2));