From a8df1703fb75a038841e0a71bad294df54364b7c Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 22 Sep 2014 13:20:27 +0800 Subject: [PATCH] py2llvm: support raise statement --- artiq/py2llvm/ast_body.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/artiq/py2llvm/ast_body.py b/artiq/py2llvm/ast_body.py index 575508b5a..864e37a45 100644 --- a/artiq/py2llvm/ast_body.py +++ b/artiq/py2llvm/ast_body.py @@ -276,3 +276,7 @@ class Visitor: def _visit_stmt_Pass(self, node): pass + + def _visit_stmt_Raise(self, node): + eid = node.exc.args[0].n + self.env.build_raise(eid, self.builder)