def get_return_type(cf=None):
    """Hack to get the return value of a function.

    :param cf: the result of ``decompile()``
    :type cf: :class:`ida_hexrays.cfuncptr_t`
    :return: Type information for the return value
    :rtype: :class:`tinfo_t`
    """
    if not cf:
        raise ValueError
    ty = cf.type
    ti = ty.get_rettype()
    return ti
