[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 <chuning@huawei.com>

	modified:   ecmascript/mem/jit_fort.h
	modified:   ecmascript/mem/region.h

Change-Id: I32748d3985aa59c56d59ead45a0a6cb97eb4cba6
Signed-off-by: chuning1988 <chuning@huawei.com>

	modified:   ecmascript/mem/jit_fort.h
	modified:   ecmascript/mem/region.h

Change-Id: I83aa846ee2e93bba2185ff4c3deea4771d8841d7
Signed-off-by: chuning1988 <chuning@huawei.com>
This commit is contained in:
chuning1988 2024-11-05 12:03:14 +08:00
parent d469c5d3e4
commit fe6b38bef4

View File

@ -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
} // namespace