X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=ir.cpp;h=01aa8f2094c59a8a075df11add7f2b426d76cd75;hp=5920361c7314bb36394bb16a09058adcb665754e;hb=878195bdec6877c9376f6da55ebf5a3a23a3cc69;hpb=aabefd1bfe0c5b08bea9341c1394cfa8b96d754d diff --git a/ir.cpp b/ir.cpp index 5920361..01aa8f2 100644 --- a/ir.cpp +++ b/ir.cpp @@ -2118,12 +2118,12 @@ void ir_function_enumerate(ir_function *self) * we can allocate their global-positions. * This is the counterpart to register-allocation in register machines. */ -typedef struct { +struct function_allocator { ir_value **locals; - size_t *sizes; - size_t *positions; - bool *unique; -} function_allocator; + size_t *sizes; + size_t *positions; + bool *unique; +}; static bool function_allocator_alloc(function_allocator *alloc, ir_value *var) {