mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Fix #2125
This commit is contained in:
@@ -5525,6 +5525,8 @@ CALL_ARGUMENT_CHECKER(check_named_call_arguments) {
|
|||||||
GB_ASSERT(is_type_proc(gept));
|
GB_ASSERT(is_type_proc(gept));
|
||||||
proc_type = gept;
|
proc_type = gept;
|
||||||
pt = &gept->Proc;
|
pt = &gept->Proc;
|
||||||
|
} else {
|
||||||
|
err = CallArgumentError_WrongTypes;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -6156,6 +6158,7 @@ CallArgumentData check_call_arguments(CheckerContext *c, Operand *operand, Type
|
|||||||
}
|
}
|
||||||
result_type = t_invalid;
|
result_type = t_invalid;
|
||||||
} else {
|
} else {
|
||||||
|
GB_ASSERT(valids.count == 1);
|
||||||
Ast *ident = operand->expr;
|
Ast *ident = operand->expr;
|
||||||
while (ident->kind == Ast_SelectorExpr) {
|
while (ident->kind == Ast_SelectorExpr) {
|
||||||
Ast *s = ident->SelectorExpr.selector;
|
Ast *s = ident->SelectorExpr.selector;
|
||||||
|
|||||||
@@ -1629,6 +1629,8 @@ Type *check_get_params(CheckerContext *ctx, Scope *scope, Ast *_params, bool *is
|
|||||||
// This is just to add the error message to determine_type_from_polymorphic which
|
// This is just to add the error message to determine_type_from_polymorphic which
|
||||||
// depends on valid position information
|
// depends on valid position information
|
||||||
op.expr = _params;
|
op.expr = _params;
|
||||||
|
op.mode = Addressing_Invalid;
|
||||||
|
op.type = t_invalid;
|
||||||
}
|
}
|
||||||
if (is_type_polymorphic_type) {
|
if (is_type_polymorphic_type) {
|
||||||
type = determine_type_from_polymorphic(ctx, type, op);
|
type = determine_type_from_polymorphic(ctx, type, op);
|
||||||
|
|||||||
@@ -294,6 +294,7 @@ LLVMMetadataRef lb_debug_type_internal(lbModule *m, Type *type) {
|
|||||||
GB_PANIC("Type_Named should be handled in lb_debug_type separately");
|
GB_PANIC("Type_Named should be handled in lb_debug_type separately");
|
||||||
|
|
||||||
case Type_SoaPointer:
|
case Type_SoaPointer:
|
||||||
|
return LLVMDIBuilderCreatePointerType(m->debug_builder, lb_debug_type(m, type->SoaPointer.elem), word_bits, word_bits, 0, nullptr, 0);
|
||||||
case Type_Pointer:
|
case Type_Pointer:
|
||||||
return LLVMDIBuilderCreatePointerType(m->debug_builder, lb_debug_type(m, type->Pointer.elem), word_bits, word_bits, 0, nullptr, 0);
|
return LLVMDIBuilderCreatePointerType(m->debug_builder, lb_debug_type(m, type->Pointer.elem), word_bits, word_bits, 0, nullptr, 0);
|
||||||
case Type_MultiPointer:
|
case Type_MultiPointer:
|
||||||
|
|||||||
Reference in New Issue
Block a user