Add tentative ".ordinal" on faults. Allow anyerr and fault to be initialized with null.

This commit is contained in:
Christoffer Lerno
2023-03-15 14:32:00 +01:00
parent 3cb94a2857
commit e2b9a35dfe
11 changed files with 89 additions and 11 deletions

View File

@@ -23,8 +23,8 @@ static inline LLVMTypeRef create_introspection_type(GenContext *c)
static inline LLVMTypeRef create_fault_type(GenContext *c)
{
LLVMTypeRef type = LLVMStructCreateNamed(c->context, ".fault");
LLVMTypeRef fault_type[] = { c->typeid_type, c->chars_type };
LLVMStructSetBody(type, fault_type, 2, false);
LLVMTypeRef fault_type[] = { c->typeid_type, c->chars_type, c->size_type };
LLVMStructSetBody(type, fault_type, 3, false);
return type;
}