ir_instr_delete_quick needs to clear _m_ops
authorWolfgang Bumiller <wry.git@bumiller.com>
Sun, 1 Feb 2015 10:49:46 +0000 (11:49 +0100)
committerWolfgang Bumiller <wry.git@bumiller.com>
Sun, 1 Feb 2015 10:49:46 +0000 (11:49 +0100)
ir.cpp

diff --git a/ir.cpp b/ir.cpp
index ba4ed64..044b834 100644 (file)
--- a/ir.cpp
+++ b/ir.cpp
@@ -792,6 +792,9 @@ static void ir_instr_delete_quick(ir_instr *self)
 {
     self->m_phi.clear();
     self->m_params.clear();
+    self->_m_ops[0] = nullptr;
+    self->_m_ops[1] = nullptr;
+    self->_m_ops[2] = nullptr;
     delete self;
 }