Skip to content

Commit

Permalink
fix unused variables in -c opt
Browse files Browse the repository at this point in the history
  • Loading branch information
walkingeyerobot committed Jan 16, 2025
1 parent e4bfcd2 commit b95a1ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/passes/Heap2Local.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@ struct Struct2Local : PostWalker<Struct2Local> {
return;
}

auto& field = fields[curr->index];
[[maybe_unused]] auto& field = fields[curr->index];
auto type = curr->type;
assert(type == field.type);
assert(!field.isPacked());
Expand Down Expand Up @@ -985,7 +985,7 @@ struct Struct2Local : PostWalker<Struct2Local> {
return;
}

auto& field = fields[curr->index];
[[maybe_unused]] auto& field = fields[curr->index];
auto type = curr->type;
assert(type == field.type);
assert(!field.isPacked());
Expand Down

0 comments on commit b95a1ac

Please sign in to comment.