diff --git a/ets2panda/compiler/core/ETSGen.cpp b/ets2panda/compiler/core/ETSGen.cpp index 30b85196537359b852c43094dea5fbb21599e6f6..a3c63d8378b09a510f824951024197f2af2ead8a 100644 --- a/ets2panda/compiler/core/ETSGen.cpp +++ b/ets2panda/compiler/core/ETSGen.cpp @@ -673,7 +673,8 @@ void ETSGen::InitLambdaObject(const ir::AstNode *node, checker::Signature *signa for (size_t i = 0; i < arguments.size(); i++) { auto ttctx = TargetTypeContext(this, signature->Params()[i]->TsType()); - StoreAccumulator(node, arguments[i]); + VReg arg_reg = AllocReg(); + MoveVreg(node, arg_reg, arguments[i]); } Rra().Emit(node, arg_start, arguments.size(), name, arg_start);