Skip to content

Commit

Permalink
compiler: skip kernel_invariant linting for exception types.
Browse files Browse the repository at this point in the history
whitequark committed Sep 14, 2016
1 parent feeb089 commit ed60ba8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions artiq/compiler/embedding.py
Original file line number Diff line number Diff line change
@@ -740,6 +740,10 @@ def finalize(self):
# specifications refers to ones we didn't encounter.
for host_type in self.embedding_map.type_map:
instance_type, constructor_type = self.embedding_map.type_map[host_type]
if not hasattr(instance_type, "constant_attributes"):
# Exceptions lack user-definable attributes.
continue

for attribute in instance_type.constant_attributes:
if attribute in instance_type.attributes:
# Fast path; if the ARTIQ Python type has the attribute, then every observed

0 comments on commit ed60ba8

Please sign in to comment.