'Get a possible assignment source (a ir.Var instance) to replace
*destname*, otherwise None.'

def get_assignment_source(self, destname):

    if (destname in self.dest_to_src):
        return self.dest_to_src[destname]
    self.unused_dests.discard(destname)
    return None
