X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=ir.h;h=42f6ce578ea958bd5e4cf409da8561eef2fc91b5;hp=e3b4fbdea62b30dd84809105fb40272f82125da2;hb=c74fabffda68fb97716afe9d70744a071f717795;hpb=90f190f5e19c1981280eedb37b9439cd9542372d diff --git a/ir.h b/ir.h index e3b4fbd..42f6ce5 100644 --- a/ir.h +++ b/ir.h @@ -148,7 +148,7 @@ struct ir_block { lex_ctx_t m_context; bool m_final = false; /* once a jump is added we're done */ - ir_instr **m_instr = nullptr; + std::vector m_instr; std::vector m_entries; std::vector m_exits; std::vector m_living; @@ -201,11 +201,11 @@ struct ir_function { ir_builder *m_owner; - std::string m_name; - qc_type m_outtype; - int *m_params = nullptr; - ir_flag_t m_flags = 0; - int m_builtin = 0; + std::string m_name; + qc_type m_outtype; + std::vector m_params; + ir_flag_t m_flags = 0; + int m_builtin = 0; std::vector> m_blocks;