Commit a5e866b1 authored by Stefan Behnel's avatar Stefan Behnel

fix compiler crash in function cimport code

parent 02e5e8e7
......@@ -1827,7 +1827,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
if entries:
env.use_utility_code(import_module_utility_code)
env.use_utility_code(function_import_utility_code)
temp = code.globalstate.allocate_temp(py_object_type)
temp = code.funcstate.allocate_temp(py_object_type, manage_ref=True)
code.putln(
'%s = __Pyx_ImportModule("%s"); if (!%s) %s' % (
temp,
......
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