Function castValue [src]
Prototype
pub fn castValue(self: *Builder, tag: Constant.Tag, val: Constant, ty: Type) Allocator.Error!Value Parameters
self: *Buildertag: Constant.Tagval: Constantty: Type Source
pub fn castValue(self: *Builder, tag: Constant.Tag, val: Constant, ty: Type) Allocator.Error!Value {
return (try self.castConst(tag, val, ty)).toValue();
}