Skip to content

Commit

Permalink
Commit missing parts of a5bb4a2.
Browse files Browse the repository at this point in the history
whitequark committed May 10, 2016
1 parent a5bb4a2 commit 0826ceb
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion artiq/compiler/transforms/artiq_ir_generator.py
Original file line number Diff line number Diff line change
@@ -599,7 +599,7 @@ def raise_exn(self, exn=None, loc=None):
self.append(ir.Reraise())

def visit_Raise(self, node):
if types.is_exn_constructor(node.exc.type):
if node.exc is not None and types.is_exn_constructor(node.exc.type):
self.raise_exn(self.alloc_exn(node.exc.type.instance), loc=self.current_loc)
else:
self.raise_exn(self.visit(node.exc), loc=self.current_loc)
5 changes: 0 additions & 5 deletions artiq/test/lit/exceptions/error_raise_class.py

This file was deleted.

0 comments on commit 0826ceb

Please sign in to comment.