Added "distinct" types.

This commit is contained in:
Christoffer Lerno
2021-01-24 21:08:43 +01:00
committed by Christoffer Lerno
parent 3a24fbfa6d
commit 7fc12192f4
29 changed files with 402 additions and 111 deletions

View File

@@ -615,6 +615,7 @@ void llvm_emit_extern_decl(GenContext *context, Decl *decl)
{
case DECL_POISONED:
case DECL_TYPEDEF:
case DECL_DISTINCT:
UNREACHABLE;
case DECL_FUNC:
decl->backend_ref = LLVMAddFunction(context->module, decl->cname ?: decl->external_name,