diff python/ir/builder.py @ 186:46d62dadd61b

Improved testsuite
author Windel Bouwman
date Sat, 25 May 2013 14:26:25 +0200
parents 3eb06f5fb987
children de3a68f677a5
line wrap: on
line diff
--- a/python/ir/builder.py	Fri May 24 20:45:03 2013 +0200
+++ b/python/ir/builder.py	Sat May 25 14:26:25 2013 +0200
@@ -52,5 +52,7 @@
    def setBB(self, bb):
       self.bb = bb
    def addIns(self, i):
+      if not self.bb:
+            raise Exception('No basic block')
       self.bb.addIns(i)