XLEN type helper

Signed-off-by: xermicus <cyrill@parity.io>
This commit is contained in:
xermicus
2024-03-22 16:34:04 +01:00
parent c52a8d0f20
commit 2327a58213
4 changed files with 24 additions and 22 deletions
+2 -2
View File
@@ -21,14 +21,14 @@ where
let input_pointer = context.build_heap_gep(offset_casted, length_casted)?;
let input_pointer_casted = context.builder().build_ptr_to_int(
input_pointer.value,
context.integer_type(32),
context.xlen_type(),
"input_pointer_casted",
)?;
let output_pointer = context.build_alloca(context.field_type(), "output_pointer");
let output_pointer_casted = context.builder().build_ptr_to_int(
output_pointer.value,
context.integer_type(32),
context.xlen_type(),
"output_pointer_casted",
)?;