mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
Add tentative ".ordinal" on faults. Allow anyerr and fault to be initialized with null.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user