Commit 33475b28 authored by Ian Henriksen's avatar Ian Henriksen

Fixed temporary handling for fake references while still allowing

temporaries for normal references to have their base type to prevent
errors involving uninitialized references.
parent b01b3fda
......@@ -701,7 +701,7 @@ class FunctionState(object):
"""
if type.is_const and not type.is_reference:
type = type.const_base_type
if type.is_reference:
elif type.is_reference and not type.is_fake_reference:
type = type.ref_base_type
if not type.is_pyobject and not type.is_memoryviewslice:
# Make manage_ref canonical, so that manage_ref will always mean
......
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