ir: fix clang-tidy warnings

Signed-off-by: Ronald Caesar <github43132@proton.me>
This commit is contained in:
Ronald Caesar
2026-01-16 22:56:03 -04:00
parent c6602c1068
commit 0de6d5fc07
3 changed files with 3 additions and 9 deletions

View File

@@ -10,7 +10,7 @@
typedef uint64_t bal_guest_address_t;
typedef uint32_t bal_instruction_t;
typedef uint64_t bal_instruction_t;
typedef uint32_t bal_constant_t;
typedef uint16_t bal_instruction_count_t;
typedef uint16_t bal_ssa_id_t;

View File

@@ -20,14 +20,14 @@ emit_instruction (bal_engine_t *engine,
if (BAL_UNLIKELY(engine->status != BAL_SUCCESS))
{
return BAL_ENGINE_STATE_INVALID;
return BAL_ERROR_ENGINE_STATE_INVALID;
}
bool is_greater_than_instructions_array
= (engine->instruction_count >= engine->instructions_size);
bool is_greater_than_source_size
= (engine->instruction->count >= (BAL_SOURCE_SIZE - 1));
= (engine->instruction_count >= (BAL_SOURCE_SIZE - 1));
if (BAL_UNLIKELY((true == is_greater_than_instructions_array)
|| (true == is_greater_than_source_size)))

View File

@@ -1,9 +1,3 @@
#include "bal_translator.h"
bal_error_t
bal_translate_block ()
{
// TODO
}
/*** end of file ***/