Skip to content

Commit

Permalink
missed
Browse files Browse the repository at this point in the history
  • Loading branch information
edg-l committed Oct 21, 2024
1 parent fb31cf1 commit fd5174c
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions src/libfuncs/starknet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ use melior::{
llvm::{self, r#type::pointer, LoadStoreOptions},
},
ir::{
attribute::{DenseI32ArrayAttribute, DenseI64ArrayAttribute},
operation::OperationBuilder,
r#type::IntegerType,
attribute::DenseI64ArrayAttribute, operation::OperationBuilder, r#type::IntegerType,
Attribute, Block, Location, Type, ValueLike,
},
Context,
Expand Down Expand Up @@ -2759,16 +2757,7 @@ pub fn build_sha256_process_block_syscall<'ctx, 'this>(
)],
pointer(context, 0),
)?;
let fn_ptr = entry
.append_operation(llvm::load(
context,
fn_ptr,
llvm::r#type::pointer(context, 0),
location,
LoadStoreOptions::default(),
))
.result(0)?
.into();
let fn_ptr = entry.load(context, location, fn_ptr, llvm::r#type::pointer(context, 0))?;

entry.append_operation(
OperationBuilder::new("llvm.call", location)
Expand Down

0 comments on commit fd5174c

Please sign in to comment.