From 0e6e802c34d4d283c63af62483171105ce0a3034 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Cabrera?= Date: Mon, 23 Jan 2023 10:05:33 -0500 Subject: [PATCH] docs: Fix typo (#5620) --- cranelift/codegen/src/isa/aarch64/abi.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cranelift/codegen/src/isa/aarch64/abi.rs b/cranelift/codegen/src/isa/aarch64/abi.rs index 180fd22f2d..8d80741770 100644 --- a/cranelift/codegen/src/isa/aarch64/abi.rs +++ b/cranelift/codegen/src/isa/aarch64/abi.rs @@ -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));