Skip to content

Commit

Permalink
Checked align_check for x86_64 singlepass compiler (for #3161)"
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb committed Aug 31, 2022
1 parent 1c1a369 commit 04692ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compiler-singlepass/src/machine_x64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ impl MachineX86_64 {

self.release_gpr(tmp2);

let align = memarg.align;
let align = value_size as u32;
if check_alignment && align != 1 {
let tmp_aligncheck = self.acquire_temp_gpr().ok_or(CodegenError {
message: "singlepass cannot acquire temp gpr".to_string(),
Expand Down

0 comments on commit 04692ad

Please sign in to comment.