From fe6b38bef4cb891417443088b43f914e3a10206d Mon Sep 17 00:00:00 2001 From: chuning1988 Date: Tue, 5 Nov 2024 12:03:14 +0800 Subject: [PATCH] [CleanCode] Add assert in ut Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAPKCO?from=project-issue Descrption:Clean code Signed-off-by: chuning1988 modified: ecmascript/mem/jit_fort.h modified: ecmascript/mem/region.h Change-Id: I32748d3985aa59c56d59ead45a0a6cb97eb4cba6 Signed-off-by: chuning1988 modified: ecmascript/mem/jit_fort.h modified: ecmascript/mem/region.h Change-Id: I83aa846ee2e93bba2185ff4c3deea4771d8841d7 Signed-off-by: chuning1988 --- .../compiler/codegen/maple/test/maple_ir/intrinsics_test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ecmascript/compiler/codegen/maple/test/maple_ir/intrinsics_test.cpp b/ecmascript/compiler/codegen/maple/test/maple_ir/intrinsics_test.cpp index b807d1060e..d1f32a432a 100644 --- a/ecmascript/compiler/codegen/maple/test/maple_ir/intrinsics_test.cpp +++ b/ecmascript/compiler/codegen/maple/test/maple_ir/intrinsics_test.cpp @@ -34,7 +34,8 @@ TEST(GetTypeFromArgTy_FUNC, t01) for (int i = 0; i < n; i++) { mirtype_ptr = IntrinDesc_struc.GetTypeFromArgTy(input_ls[i]); + ASSERT_TRUE(mirtype_ptr != nullptr); mirtype_ptr->GetPrimType(); } } -} // namespace \ No newline at end of file +} // namespace