Commit a018747a authored by Eric Anholt's avatar Eric Anholt

glsl: Clean up warnings about deleting classes without virtual destructors.

Reviewed-by: Kenneth Graunke's avatarKenneth Graunke <>
parent ea055e19
......@@ -89,6 +89,16 @@ class ir_instruction : public exec_node {
enum ir_node_type ir_type;
* GCC 4.7+ and clang warn when deleting an ir_instruction unless
* there's a virtual destructor present. Because we almost
* universally use ralloc for our memory management of
* ir_instructions, the destructor doesn't need to do any work.
virtual ~ir_instruction()
/** ir_print_visitor helper for debugging. */
void print(void) const;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment