From efe8e777c1494f9bbebeb0dfb973f877a7925816 Mon Sep 17 00:00:00 2001 From: ctw-ian Date: Fri, 5 Aug 2022 16:20:23 +0800 Subject: [PATCH] fixed 546fb9b from https://gitee.com/zhangrengao1/ark_ts2abc/pulls/415 Delete an assertion in debug mode Issue:I5KTIQ Signed-off-by: ctw-ian Change-Id: Ic4238d74acb90fbbd9dbdb9123036459b4ca26b1 --- es2panda/compiler/core/emitter/emitter.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/es2panda/compiler/core/emitter/emitter.cpp b/es2panda/compiler/core/emitter/emitter.cpp index ecec4eead8..31e8a224a9 100644 --- a/es2panda/compiler/core/emitter/emitter.cpp +++ b/es2panda/compiler/core/emitter/emitter.cpp @@ -208,8 +208,6 @@ void FunctionEmitter::GenInstructionDebugInfo(const IRNode *ins, panda::pandasm: constexpr size_t INVALID_LINE = -1; constexpr uint32_t INVALID_COL = -1; - ASSERT(astNode != nullptr); - if (astNode == FIRST_NODE_OF_FUNCTION) { astNode = pg_->Debuginfo().firstStmt; if (!astNode) { -- Gitee