Skip to content

Commit

Permalink
fix: make val in loop scope
Browse files Browse the repository at this point in the history
  • Loading branch information
yi-sun committed Jan 6, 2025
1 parent ab13e01 commit a8c0bcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/native/compiler/src/ir/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ impl<'a, C: Config, V: MemVariable<C>> IteratorBuilder<'a, C, V> {
let loop_variable: Var<C::N> = self.builder.uninit();
let mut loop_body_builder = self.builder.create_sub_builder();

let val: V = self.builder.uninit();
let val: V = loop_body_builder.uninit();
loop_body_builder.load(
val.clone(),
Ptr {
Expand Down

0 comments on commit a8c0bcc

Please sign in to comment.