Skip to content

Commit

Permalink
analysis: don't do analysis for empty list (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
merisbahti authored Nov 5, 2024
1 parent e15d3f1 commit 26612b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/steel-core/src/compiler/passes/analysis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1096,6 +1096,10 @@ impl<'a> VisitorMutUnitRef<'a> for AnalysisPass<'a> {
// the function call.
let stack_offset = self.stack_offset;

if l.is_empty() {
return;
}

for expr in &l.args[1..] {
self.escape_analysis = true;

Expand Down

0 comments on commit 26612b9

Please sign in to comment.