From 991479fbf921ab04b921bbb8163e5522f78feb3c Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 23 Mar 2018 16:01:23 +0000 Subject: Remove allocator parameter to `types.cpp` functions --- src/check_stmt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/check_stmt.cpp') diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index be37b937c..ff04fed14 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -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) { -- cgit v1.2.3