mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-19 04:12:22 -07:00
move to checker error, rather than panic
This commit is contained in:
@@ -4714,6 +4714,14 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As
|
||||
break;
|
||||
|
||||
case BuiltinProc_read_cycle_counter_frequency:
|
||||
if (build_context.metrics.arch != TargetArch_arm64) {
|
||||
error(call, "'%.*s' is only allowed on arm64 targets", LIT(builtin_name));
|
||||
return false;
|
||||
}
|
||||
operand->mode = Addressing_Value;
|
||||
operand->type = t_i64;
|
||||
break;
|
||||
|
||||
case BuiltinProc_read_cycle_counter:
|
||||
operand->mode = Addressing_Value;
|
||||
operand->type = t_i64;
|
||||
|
||||
Reference in New Issue
Block a user