Skip to content

Commit

Permalink
Merge branch 'main' into add-green-check
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianGCalderon authored Oct 28, 2024
2 parents 5c66346 + a628b24 commit 30e8024
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/starknet-blocks.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Execute blocks

on:
push:
branches: [main]
pull_request:
branches: [main]
merge_group:
types: [checks_requested]

Expand Down Expand Up @@ -85,7 +84,7 @@ jobs:
if: ${{ matrix.runner == 'native' }}
run: |
cd replay
sed -r -i 's/cairo_native.*rev.*[0-9a-z]+./cairo_native.git", rev = "${{ github.event.pull_request.head.sha }}"/' Cargo.toml
sed -r -i 's/cairo-native.*/cairo-native = { path = ".." }/' Cargo.toml
- name: Run Blocks Native
if: ${{ matrix.runner == 'native' }}
Expand Down
8 changes: 5 additions & 3 deletions src/libfuncs/circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ fn build_add_input<'ctx, 'this>(
middle_insert_block.insert_value(context, location, accumulator, next_length, 0)?;

// Get pointer to accumulator with alloc and store
let accumulator_ptr = middle_insert_block.alloca1(
let accumulator_ptr = helper.init_block().alloca1(
context,
location,
accumulator.r#type(),
Expand Down Expand Up @@ -261,10 +261,12 @@ fn build_add_input<'ctx, 'this>(

// Alloc return data
let data_ptr =
last_insert_block.alloca1(context, location, data_type, data_layout.align())?;
helper
.init_block()
.alloca1(context, location, data_type, data_layout.align())?;

// Get pointer to accumulator with alloc and store
let accumulator_ptr = last_insert_block.alloca1(
let accumulator_ptr = helper.init_block().alloca1(
context,
location,
accumulator.r#type(),
Expand Down

0 comments on commit 30e8024

Please sign in to comment.