More lints

This commit is contained in:
Michael-F-Bryan
2023-05-27 07:16:37 +08:00
parent 3800f200ae
commit 4e8294a08b
4 changed files with 14 additions and 10 deletions

View File

@ -1062,7 +1062,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
let function = &self.function;
// Compute the offset into the storage.
let imm_offset = intrinsics.i64_ty.const_int(memarg.offset as u64, false);
let imm_offset = intrinsics.i64_ty.const_int(memarg.offset, false);
let var_offset = builder.build_int_z_extend(var_offset, intrinsics.i64_ty, "");
let offset = builder.build_int_add(var_offset, imm_offset, "");