diff --git a/src/ir/branch-utils.h b/src/ir/branch-utils.h index d90f3a1947d..f7b024e78fe 100644 --- a/src/ir/branch-utils.h +++ b/src/ir/branch-utils.h @@ -109,11 +109,11 @@ void operateOnScopeNameUsesAndSentValues(Expression* expr, T func) { func(name, sw->value); } else if (auto* br = expr->dynCast()) { func(name, br->ref); - } else if (auto* tt = expr->dynCast()) { + } else if (expr->is()) { // The values are supplied by throwing instructions, so we are unable to // know what they will be here. func(name, nullptr); - } else if (auto* res = expr->dynCast()) { + } else if (expr->is()) { // The values are supplied by suspend instructions executed while running // the continuation, so we are unable to know what they will be here. func(name, nullptr);