From 0f08a938f390f4b9a313da441df4c6605fbf6fcb Mon Sep 17 00:00:00 2001 From: turgutbababalim Date: Thu, 19 Jun 2025 22:15:19 +0300 Subject: [PATCH] Block statement clone removal Issue: ICGHFB Description: Block statements clone method tries to call Statement classes clone which does not exist. Signed-off-by: turgutbababalim --- ets2panda/ir/expressions/callExpression.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ets2panda/ir/expressions/callExpression.cpp b/ets2panda/ir/expressions/callExpression.cpp index a7bfa507bb..2abc0dc93b 100644 --- a/ets2panda/ir/expressions/callExpression.cpp +++ b/ets2panda/ir/expressions/callExpression.cpp @@ -139,9 +139,7 @@ CallExpression::CallExpression(CallExpression const &other, ArenaAllocator *cons arguments_.emplace_back(argument->Clone(allocator, this)->AsExpression()); } - trailingLambdaInfo_.block = other.trailingLambdaInfo_.block != nullptr - ? other.trailingLambdaInfo_.block->Clone(allocator, this)->AsBlockStatement() - : nullptr; + trailingLambdaInfo_.block = other.trailingLambdaInfo_.block != nullptr ? other.trailingLambdaInfo_.block : nullptr; } CallExpression *CallExpression::Clone(ArenaAllocator *const allocator, AstNode *const parent) -- Gitee