diff options
| author | gingerBill <bill@gingerbill.org> | 2023-09-26 13:04:47 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-09-26 13:04:47 +0100 |
| commit | 47023b2e6c8516800e17579c651798eec2b013e4 (patch) | |
| tree | 90c4278e17ca11c0e0725738abaf43374a493428 /src | |
| parent | f4a390201c7eb45206fc383bf4578ed9ddc6b0e2 (diff) | |
Fix #2812
Diffstat (limited to 'src')
| -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; } |