X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=ast.cpp;h=cbc5db9657a9af3beaf6d12b5e64bb442c4f0066;hp=1b6d40131aa66738af83cf21e1d5b47d89092758;hb=e006aa82388218f0f18e93087217d1aa0c2cee83;hpb=566c17a964ee573ede4ac00abeed51ca60c15c4e diff --git a/ast.cpp b/ast.cpp index 1b6d401..cbc5db9 100644 --- a/ast.cpp +++ b/ast.cpp @@ -1510,9 +1510,9 @@ bool ast_function::generateFunction(ir_builder *ir) /* fill the parameter list */ for (auto &it : m_function_type->m_type_params) { if (it->m_vtype == TYPE_FIELD) - vec_push(irf->m_params, it->m_next->m_vtype); + irf->m_params.push_back(it->m_next->m_vtype); else - vec_push(irf->m_params, it->m_vtype); + irf->m_params.push_back(it->m_vtype); if (!m_builtin) { if (!it->generateLocal(m_ir_func, true)) return false; @@ -1804,7 +1804,7 @@ bool ast_binary::codegen(ast_function *func, bool lvalue, ir_value **out) return false; } /* use the likely flag */ - vec_last(func->m_curblock->m_instr)->m_likely = true; + func->m_curblock->m_instr.back()->m_likely = true; /* enter the right-expression's block */ func->m_curblock = other;