diff python/ir/basicblock.py @ 252:c4370696ccc7

added optimize function
author Windel Bouwman
date Tue, 30 Jul 2013 17:57:46 +0200
parents ef683881c64e
children 04c19282a5aa
line wrap: on
line diff
--- a/python/ir/basicblock.py	Mon Jul 29 20:23:13 2013 +0200
+++ b/python/ir/basicblock.py	Tue Jul 30 17:57:46 2013 +0200
@@ -21,6 +21,7 @@
 
     def removeInstruction(self, i):
         i.parent = None
+        i.delete()
         self.instructions.remove(i)
 
     def getInstructions(self):