diff options
| author | gingerBill <bill@gingerbill.org> | 2023-09-27 11:38:11 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-09-27 11:38:11 +0100 |
| commit | acc29fbcebf4459b1c98c54d9cc565d363a4196a (patch) | |
| tree | 91b4692e0a8c9c3958ed44347ded5a2f40ee157d /src/check_builtin.cpp | |
| parent | 94d68c1f225c3699d905388baee15e42ec6e49a0 (diff) | |
| parent | fc93ea7aa370d25aab61dab43e885f50978dff50 (diff) | |
Merge branch 'master' into llvm-17
Diffstat (limited to 'src/check_builtin.cpp')
| -rw-r--r-- | src/check_builtin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp index 2e65c5750..851665cb2 100644 --- a/src/check_builtin.cpp +++ b/src/check_builtin.cpp @@ -2120,7 +2120,7 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As return false; } Type *t = o.type; - if (t == nullptr || t == t_invalid || is_type_asm_proc(o.type) || is_type_polymorphic(operand->type)) { + if (t == nullptr || t == t_invalid || is_type_asm_proc(t) || is_type_polymorphic(t)) { error(ce->args[0], "Invalid argument for '%.*s'", LIT(builtin_name)); return false; } |