aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-01-18 13:11:51 +0000
committergingerBill <bill@gingerbill.org>2018-01-18 13:11:51 +0000
commit386f5f596da284e90565b02d7766ebf79fddb8f7 (patch)
tree96933323160f1afa272ff626caa07409d2425a12 /src/ir.cpp
parentadd53228b2ee93f7374a815ce1c4e5a86b7b9d28 (diff)
Change to HeapAlloc et al on Windows
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index dae3e94d6..39d7e3e84 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -1285,7 +1285,6 @@ irDefer ir_add_defer_instr(irProcedure *proc, isize scope_index, irValue *instr)
irValue *ir_add_module_constant(irModule *m, Type *type, ExactValue value) {
gbAllocator a = m->allocator;
- // gbAllocator a = gb_heap_allocator();
if (is_type_slice(type)) {
ast_node(cl, CompoundLit, value.value_compound);
@@ -1321,7 +1320,7 @@ irValue *ir_add_global_string_array(irModule *m, String string) {
// TODO(bill): Should this use the arena allocator or the heap allocator?
// Strings could be huge!
// gbAllocator a = m->allocator;
- gbAllocator a = gb_heap_allocator();
+ gbAllocator a = heap_allocator();
isize max_len = 6+8+1;
u8 *str = cast(u8 *)gb_alloc_array(a, u8, max_len);