mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-11-10 12:47:10 +00:00
remove superfluous byte swap in linkersymbol builtin translation (#455)
- Remove the superfluous byte swap in the `linkersymbol` builtin translation. - Support testing the `linkersymbol` builtin translation in the runner specs. --------- Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
This commit is contained in:
1 parent
2d85ca9755
commit
289af875db
12 files changed
+498
-345
No files matched your search
@@ -748,7 +748,7 @@ impl<'ctx> Context<'ctx> {
|
||||
&self,
|
||||
pointer: Pointer<'ctx>,
|
||||
) -> anyhow::Result<inkwell::values::BasicValueEnum<'ctx>> {
|
||||
let address = self.build_byte_swap(self.build_load(pointer, "address_pointer")?)?;
|
||||
let address = self.build_byte_swap(self.build_load(pointer, "address_value")?)?;
|
||||
Ok(self
|
||||
.builder()
|
||||
.build_int_z_extend(address.into_int_value(), self.word_type(), "address_zext")?
|
||||
|
||||
Reference in new issue
Block a user