Remove allocator parameter to types.cpp functions

This commit is contained in:
gingerBill
2018-03-23 16:01:23 +00:00
parent 5660f98cc3
commit 991479fbf9
8 changed files with 364 additions and 359 deletions
+1 -1
View File
@@ -987,7 +987,7 @@ void check_type_switch_stmt(Checker *c, AstNode *node, u32 mod_flags) {
!is_type_any(type_deref(x.type)) &&
cc->list.count == 1 &&
case_type != nullptr) {
case_type = make_type_pointer(c->allocator, case_type);
case_type = alloc_type_pointer(case_type);
}
if (cc->list.count > 1) {