Fix Internal Compiler Error: Type_Info for 'XXX' could not be found #507

This commit is contained in:
gingerBill
2019-12-22 14:16:56 +00:00
parent cc2fa8f756
commit 1d14b3059e
4 changed files with 20 additions and 11 deletions
+1 -1
View File
@@ -330,7 +330,7 @@ DeclInfo * decl_info_of_ident (Ast *ident);
DeclInfo * decl_info_of_entity (Entity * e);
AstFile * ast_file_of_filename (CheckerInfo *i, String filename);
// IMPORTANT: Only to use once checking is done
isize type_info_index (CheckerInfo *i, Type * type, bool error_on_failure = true);
isize type_info_index (CheckerInfo *i, Type *type, bool error_on_failure);
// Will return nullptr if not found
Entity *entity_of_node(Ast *expr);