Skip to content

Commit

Permalink
[NFC] Avoid a warning on an unused var (WebAssembly#6300)
Browse files Browse the repository at this point in the history
  • Loading branch information
kripken authored and radekdoulik committed Jul 12, 2024
1 parent 083845b commit 9cb23bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/passes/RemoveUnusedBrs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1566,7 +1566,8 @@ struct RemoveUnusedBrs : public WalkerPass<PostWalker<RemoveUnusedBrs>> {
auto* condition = getProperBrIf(curr)->condition;
if (auto* binary = condition->dynCast<Binary>()) {
return binary->right->cast<Const>()->value.geti32();
} else if (auto* unary = condition->dynCast<Unary>()) {
} else if ([[maybe_unused]] auto* unary =
condition->dynCast<Unary>()) {
assert(unary->op == EqZInt32);
return 0;
} else {
Expand Down

0 comments on commit 9cb23bf

Please sign in to comment.