From 0a4ec43a9524f8deca1234e1325fb559db86a93b Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Wed, 22 Jun 2022 12:55:43 +0200 Subject: [PATCH] Fix machine_arm64 that was trying to emit a sub opcode with a constant as destination (for #2959) --- lib/compiler-singlepass/src/machine_arm64.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compiler-singlepass/src/machine_arm64.rs b/lib/compiler-singlepass/src/machine_arm64.rs index 9d8555eaa3b..aaa69f49e0d 100644 --- a/lib/compiler-singlepass/src/machine_arm64.rs +++ b/lib/compiler-singlepass/src/machine_arm64.rs @@ -1017,8 +1017,8 @@ impl MachineARM64 { self.assembler.emit_sub( Size::S64, Location::GPR(tmp_bound), - Location::GPR(tmp_bound), Location::Imm32(value_size as _), + Location::GPR(tmp_bound), )?; } else { let tmp2 = self.acquire_temp_gpr().ok_or(CodegenError {