Fix type incomplete of argument in away procedure that has a pointer to
that that is never used outside of procedure definition. We emit void.
This commit is contained in:
@@ -80,7 +80,12 @@ get_ctype_name_for_type(Ast_Type *type){
|
||||
case TYPE_TUPLE: return "Tuple";
|
||||
case TYPE_TYPE: return "int64_t";
|
||||
|
||||
case TYPE_INCOMPLETE: return "(Internal compiler error: [Type_Incomplete])";
|
||||
case TYPE_INCOMPLETE: {
|
||||
// This happens in case where we have a procedure in an away module.
|
||||
// And that procedure takes a pointer from a struct that is never
|
||||
// use elsewhere. In that case this seems fine.
|
||||
return "void";
|
||||
}
|
||||
invalid_default_case;
|
||||
}
|
||||
return "<unknown_type>";
|
||||
|
||||
Reference in New Issue
Block a user