diff options
| author | gingerBill <bill@gingerbill.org> | 2018-03-23 16:01:23 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-03-23 16:01:23 +0000 |
| commit | 991479fbf921ab04b921bbb8163e5522f78feb3c (patch) | |
| tree | 6bb865786e9c5f51c52f7873f79ac1395431910d /src/check_stmt.cpp | |
| parent | 5660f98cc374c268e29a0b337b56702fca755c43 (diff) | |
Remove allocator parameter to `types.cpp` functions
Diffstat (limited to 'src/check_stmt.cpp')
| -rw-r--r-- | src/check_stmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |