summaryrefslogtreecommitdiff
path: root/src/passes/Poppify.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/Poppify.cpp')
-rw-r--r--src/passes/Poppify.cpp15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/passes/Poppify.cpp b/src/passes/Poppify.cpp
index e47b13568..a7f3e5ccc 100644
--- a/src/passes/Poppify.cpp
+++ b/src/passes/Poppify.cpp
@@ -243,16 +243,14 @@ void Poppifier::emit(Expression* curr) {
};
void Poppifier::emitIfElse(If* curr) {
- auto& scope = scopeStack.back();
- WASM_UNUSED(scope);
+ [[maybe_unused]] auto& scope = scopeStack.back();
assert(scope.kind == Scope::If);
patchScope(curr->ifTrue);
scopeStack.emplace_back(Scope::Else);
}
void Poppifier::emitCatch(Try* curr, Index i) {
- auto& scope = scopeStack.back();
- WASM_UNUSED(scope);
+ [[maybe_unused]] auto& scope = scopeStack.back();
if (i == 0) {
assert(scope.kind == Scope::Try);
patchScope(curr->body);
@@ -264,8 +262,7 @@ void Poppifier::emitCatch(Try* curr, Index i) {
}
void Poppifier::emitCatchAll(Try* curr) {
- auto& scope = scopeStack.back();
- WASM_UNUSED(scope);
+ [[maybe_unused]] auto& scope = scopeStack.back();
if (curr->catchBodies.size() == 1) {
assert(scope.kind == Scope::Try);
patchScope(curr->body);
@@ -277,8 +274,7 @@ void Poppifier::emitCatchAll(Try* curr) {
}
void Poppifier::emitDelegate(Try* curr) {
- auto& scope = scopeStack.back();
- WASM_UNUSED(scope);
+ [[maybe_unused]] auto& scope = scopeStack.back();
assert(scope.kind == Scope::Try);
patchScope(curr->body);
scopeStack.back().instrs.push_back(curr);
@@ -310,8 +306,7 @@ void Poppifier::emitScopeEnd(Expression* curr) {
}
void Poppifier::emitFunctionEnd() {
- auto& scope = scopeStack.back();
- WASM_UNUSED(scope);
+ [[maybe_unused]] auto& scope = scopeStack.back();
assert(scope.kind == Scope::Func);
patchScope(func->body);
}