diff --git a/src/compiler/ast.c b/src/compiler/ast.c index 5a4250ea0..f49b61eb4 100644 --- a/src/compiler/ast.c +++ b/src/compiler/ast.c @@ -56,7 +56,7 @@ void decl_set_external_name(Decl *decl) } scratch_buffer_clear(); scratch_buffer_append(decl->module->name->module); - scratch_buffer_append("::"); + scratch_buffer_append("."); scratch_buffer_append(decl->name ?: "anon"); TokenType type = TOKEN_INVALID_TOKEN; const char *buffer = scratch_buffer_to_string(); diff --git a/src/compiler/llvm_codegen_debug_info.c b/src/compiler/llvm_codegen_debug_info.c index b15f50f84..17c6e95ba 100644 --- a/src/compiler/llvm_codegen_debug_info.c +++ b/src/compiler/llvm_codegen_debug_info.c @@ -445,8 +445,8 @@ static LLVMMetadataRef llvm_debug_array_type(GenContext *c, Type *type) } LLVMMetadataRef real = LLVMDIBuilderCreateArrayType( c->debug.builder, - type_size(type), - type_abi_alignment(current_type), + type_size(type) * 8, + type_abi_alignment(current_type) * 8, llvm_get_debug_type(c, current_type), ranges, vec_size(ranges)); @@ -502,8 +502,8 @@ static LLVMMetadataRef llvm_debug_vector_type(GenContext *c, Type *type) } return LLVMDIBuilderCreateVectorType( c->debug.builder, - type_size(type), - type_abi_alignment(current_type), + type_size(type) * 8, + type_abi_alignment(current_type) * 8, llvm_get_debug_type(c, current_type), ranges, vec_size(ranges)); }