Self-referential struct
All checks were successful
All checks were successful
This commit is contained in:
parent
510f27e13f
commit
5de4ba76f5
@ -306,7 +306,7 @@ global_variable String names[] =
|
||||
string_literal("noreturn_macro"),
|
||||
string_literal("generic_pointer_array"),
|
||||
|
||||
// string_literal("self_referential_struct"), // TODO
|
||||
string_literal("self_referential_struct"), // TODO
|
||||
// string_literal("forward_declared_type"),
|
||||
};
|
||||
|
||||
|
@ -956,6 +956,7 @@ fn void resolve_type_in_place_debug(Module* module, Type* type)
|
||||
{
|
||||
LLVMDIFlags flags = {};
|
||||
auto forward_declaration = LLVMDIBuilderCreateReplaceableCompositeType(module->llvm.di_builder, module->llvm.debug_tag, (char*)type->name.pointer, type->name.length, module->scope.llvm, module->llvm.file, type->structure.line, 0, type->structure.byte_size * 8, type->structure.byte_alignment * 8, flags, (char*)type->name.pointer, type->name.length);
|
||||
type->llvm.debug = forward_declaration;
|
||||
module->llvm.debug_tag += 1;
|
||||
|
||||
LLVMMetadataRef llvm_type_buffer[64];
|
||||
|
Loading…
x
Reference in New Issue
Block a user