mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-01 12:18:15 +00:00
Make valgrind calls a no-op on non-supported platforms rather than print an error
This commit is contained in:
@@ -5398,10 +5398,7 @@ bool check_builtin_procedure(CheckerContext *c, Operand *operand, Ast *call, i32
|
|||||||
|
|
||||||
case BuiltinProc_valgrind_client_request:
|
case BuiltinProc_valgrind_client_request:
|
||||||
{
|
{
|
||||||
if (!is_arch_x86()) {
|
// NOTE(bill): Check it but make it a no-op for non x86 (i386, amd64) targets
|
||||||
error(call, "'%.*s' is only allowed on x86 targets (i386, amd64)", LIT(builtin_name));
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
enum {ARG_COUNT = 7};
|
enum {ARG_COUNT = 7};
|
||||||
GB_ASSERT(builtin_procs[BuiltinProc_valgrind_client_request].arg_count == ARG_COUNT);
|
GB_ASSERT(builtin_procs[BuiltinProc_valgrind_client_request].arg_count == ARG_COUNT);
|
||||||
|
|||||||
Reference in New Issue
Block a user