summaryrefslogtreecommitdiff
path: root/Cython/Compiler/ModuleNode.py
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2018-06-03 22:12:33 +0200
committerStefan Behnel <stefan_ml@behnel.de>2018-06-03 22:12:33 +0200
commit93c7400a5027ee57ea710d6a0a26e3e339de5182 (patch)
tree496f4780e71d4675084012fe0ad748e754349db2 /Cython/Compiler/ModuleNode.py
parentdf202292998172ea141f116a1bb85c0555d2ab01 (diff)
downloadcython-93c7400a5027ee57ea710d6a0a26e3e339de5182.tar.gz
Fix: reallowing tp_clear() in a subtype of an @no_gc_clear extension type generated an invalid C function call to the (non-existent) base type implementation.
Closes #2309.
Diffstat (limited to 'Cython/Compiler/ModuleNode.py')
-rw-r--r--Cython/Compiler/ModuleNode.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py
index 944950288..64cec6d69 100644
--- a/Cython/Compiler/ModuleNode.py
+++ b/Cython/Compiler/ModuleNode.py
@@ -1603,7 +1603,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code.putln("}")
def generate_clear_function(self, scope, code, cclass_entry):
- tp_slot = TypeSlots.GCDependentSlot("tp_clear")
+ tp_slot = TypeSlots.get_slot_by_name("tp_clear")
slot_func = scope.mangle_internal("tp_clear")
base_type = scope.parent_type.base_type
if tp_slot.slot_code(scope) != slot_func: