Skip to content

Commit

Permalink
fix: hoist constraints on inputs to top of program
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Jan 17, 2024
1 parent 66f5cdd commit a789fae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ impl Ssa {
// We iterate through the previous instructions in reverse order so the index is from the
// back of the vector. Subtract from vector length to get correct index.
.map(|reversed_index| filtered_instructions.len() - reversed_index)
.unwrap_or(filtered_instructions.len());
.unwrap_or(0);

filtered_instructions.insert(index, instruction);
}
Expand Down

0 comments on commit a789fae

Please sign in to comment.