'Store the value into the given variable.'

def storevar(self, value, name):

    fetype = self.typeof(name)
    self._alloca_var(name, fetype)
    old = self.loadvar(name)
    self.decref(fetype, old)
    ptr = self.getvar(name)
    if (value.type != ptr.type.pointee):
        msg = "Storing    {value.type}    to    ptr    of    {ptr.type.pointee}    ('{name}').    FE    type    {fetype}".format(value=value, ptr=ptr, fetype=fetype, name=name)
        raise AssertionError(msg)
    self.builder.store(value, ptr)
