diff options
Diffstat (limited to 'src/ir/localize.h')
-rw-r--r-- | src/ir/localize.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ir/localize.h b/src/ir/localize.h index 05eadc593..ff454382d 100644 --- a/src/ir/localize.h +++ b/src/ir/localize.h @@ -30,13 +30,13 @@ struct Localizer { Localizer(Expression* input, Function* func, Module* wasm) { expr = input; - if (auto* get = expr->dynCast<GetLocal>()) { + if (auto* get = expr->dynCast<LocalGet>()) { index = get->index; - } else if (auto* set = expr->dynCast<SetLocal>()) { + } else if (auto* set = expr->dynCast<LocalSet>()) { index = set->index; } else { index = Builder::addVar(func, expr->type); - expr = Builder(*wasm).makeTeeLocal(index, expr); + expr = Builder(*wasm).makeLocalTee(index, expr); } } }; |