'This is allow to be called on non pyobject pointer, in which case
no code is inserted.'

def decref(self, value):

    lpyobj = self.context.get_value_type(types.pyobject)
    if (value.type == lpyobj):
        self.pyapi.decref(value)
