Skip to content

Commit

Permalink
fix clang tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
dwightguth committed Sep 12, 2024
1 parent 60a10ee commit 599047e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions runtime/lto/alloc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,7 @@ size_t youngspace_size(void) {

bool youngspace_almost_full(size_t threshold) {
char *next_block = *(char **)youngspace.block_start;
if (next_block) {
// not on the last block, so short circuit and assume that we can keep
// allocating for now.
return false;
}
return true;
return !next_block;
}

void kore_alloc_swap(bool swap_old) {
Expand Down

0 comments on commit 599047e

Please sign in to comment.