Skip to content

Commit

Permalink
Refactored ec libfuncs to use the BlockExt trait (#655)
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoratger authored Jun 6, 2024
1 parent e90c4ce commit e0813b0
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/libfuncs/ec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,7 @@ pub fn build_state_init<'ctx, 'this>(
false,
);

let point = entry
.append_operation(llvm::undef(ec_state_ty, location))
.result(0)?
.into();
let point = entry.append_op_result(llvm::undef(ec_state_ty, location))?;

let value = BigInt::parse_bytes(
b"3151312365169595090315724863753927489909436624354740709748557281394568342450",
Expand Down Expand Up @@ -562,10 +559,7 @@ pub fn build_zero<'ctx, 'this>(
&info.branch_signatures()[0].vars[0].ty,
)?;

let point = entry
.append_operation(llvm::undef(ec_point_ty, location))
.result(0)?
.into();
let point = entry.append_op_result(llvm::undef(ec_point_ty, location))?;

let k0 = entry.const_int(context, location, 0, 252)?;

Expand Down

0 comments on commit e0813b0

Please sign in to comment.