Commit c5a56e4b authored by Robert Bradshaw's avatar Robert Bradshaw

Do not redeclare types used in utility code specialization.

parent 3f208dde
......@@ -174,7 +174,8 @@ class CythonUtilityCode(Code.UtilityCodeBase):
# inject types into module scope
def scope_transform(module_node):
for name, type in self.context_types.items():
module_node.scope.declare_type(name, type, None, visibility='extern')
entry = module_node.scope.declare_type(name, type, None, visibility='extern')
entry.in_cinclude = True
return module_node
pipeline = Pipeline.insert_into_pipeline(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment