forked from M-Labs/artiq
py2llvm: support raise statement
This commit is contained in:
parent
ec7a92983d
commit
a8df1703fb
|
@ -276,3 +276,7 @@ class Visitor:
|
||||||
|
|
||||||
def _visit_stmt_Pass(self, node):
|
def _visit_stmt_Pass(self, node):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def _visit_stmt_Raise(self, node):
|
||||||
|
eid = node.exc.args[0].n
|
||||||
|
self.env.build_raise(eid, self.builder)
|
||||||
|
|
Loading…
Reference in New Issue