diff options
| author | gingerBill <bill@gingerbill.org> | 2023-01-16 13:22:37 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-01-16 13:22:37 +0000 |
| commit | 5d397804f7c02a2a71a10dd3af2f59a1bb3b4a10 (patch) | |
| tree | 5a5d1e630d903f4335ceeb0557b4644974d71ccb /src/llvm_backend_proc.cpp | |
| parent | a5a7226885718e701665a7a5eb2528dcd2506f0a (diff) | |
Fix #2286 by printing an error correctly
Diffstat (limited to 'src/llvm_backend_proc.cpp')
| -rw-r--r-- | src/llvm_backend_proc.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/llvm_backend_proc.cpp b/src/llvm_backend_proc.cpp index b95fc7da6..822bae84e 100644 --- a/src/llvm_backend_proc.cpp +++ b/src/llvm_backend_proc.cpp @@ -68,7 +68,9 @@ gb_internal lbProcedure *lb_create_procedure(lbModule *m, Entity *entity, bool i GB_ASSERT(entity != nullptr); GB_ASSERT(entity->kind == Entity_Procedure); if (!entity->Procedure.is_foreign) { - GB_ASSERT_MSG(entity->flags & EntityFlag_ProcBodyChecked, "%.*s :: %s (was parapoly: %d)", LIT(entity->token.string), type_to_string(entity->type), is_type_polymorphic(entity->type, true)); + if ((entity->flags & EntityFlag_ProcBodyChecked) == 0) { + GB_PANIC("%.*s :: %s (was parapoly: %d %d)", LIT(entity->token.string), type_to_string(entity->type), is_type_polymorphic(entity->type, true), is_type_polymorphic(entity->type, false)); + } } String link_name = {}; |