Browse Source

Remove temporary reference types

gingerBill 4 years ago
parent
commit
a4d0092b16
2 changed files with 4 additions and 4 deletions
  1. 2 2
      src/check_decl.cpp
  2. 2 2
      src/checker.hpp

+ 2 - 2
src/check_decl.cpp

@@ -372,7 +372,7 @@ void override_entity_in_scope(Entity *original_entity, Entity *new_entity) {
 
 
 
 
 
 
-void check_const_decl(CheckerContext *ctx, Entity *&e, Ast *type_expr, Ast *init, Type *named_type) {
+void check_const_decl(CheckerContext *ctx, Entity *e, Ast *type_expr, Ast *init, Type *named_type) {
 	GB_ASSERT(e->type == nullptr);
 	GB_ASSERT(e->type == nullptr);
 	GB_ASSERT(e->kind == Entity_Constant);
 	GB_ASSERT(e->kind == Entity_Constant);
 
 
@@ -1087,7 +1087,7 @@ void check_proc_group_decl(CheckerContext *ctx, Entity *&pg_entity, DeclInfo *d)
 
 
 }
 }
 
 
-void check_entity_decl(CheckerContext *ctx, Entity *&e, DeclInfo *d, Type *named_type) {
+void check_entity_decl(CheckerContext *ctx, Entity *e, DeclInfo *d, Type *named_type) {
 	if (e->state == EntityState_Resolved)  {
 	if (e->state == EntityState_Resolved)  {
 		return;
 		return;
 	}
 	}

+ 2 - 2
src/checker.hpp

@@ -396,8 +396,8 @@ void check_add_import_decl(CheckerContext *c, Ast *decl);
 void check_add_foreign_import_decl(CheckerContext *c, Ast *decl);
 void check_add_foreign_import_decl(CheckerContext *c, Ast *decl);
 
 
 
 
-void check_entity_decl(CheckerContext *c, Entity *&e, DeclInfo *d, Type *named_type);
-void check_const_decl(CheckerContext *c, Entity *&e, Ast *type_expr, Ast *init_expr, Type *named_type);
+void check_entity_decl(CheckerContext *c, Entity *e, DeclInfo *d, Type *named_type);
+void check_const_decl(CheckerContext *c, Entity *e, Ast *type_expr, Ast *init_expr, Type *named_type);
 void check_type_decl(CheckerContext *c, Entity *e, Ast *type_expr, Type *def);
 void check_type_decl(CheckerContext *c, Entity *e, Ast *type_expr, Type *def);
 
 
 bool check_arity_match(CheckerContext *c, AstValueDecl *vd, bool is_global = false);
 bool check_arity_match(CheckerContext *c, AstValueDecl *vd, bool is_global = false);