Skip to content

Commit

Permalink
Bail out in some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tekknolagi committed Nov 28, 2023
1 parent c57b9e1 commit 3fd9209
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions runtime/bytecode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,10 @@ static void analyzeDefiniteAssignment(Thread* thread,
// I don't want to deal with the block stack (yet?).
return;
}
if (num_opcodes == 0) {
// Some tests generate empty code objects. Bail out.
return;
}
// Lattice definition
uword top = kMaxUword;
auto meet = [](uword left, uword right) { return left & right; };
Expand Down

0 comments on commit 3fd9209

Please sign in to comment.