Function convConst [src]
Prototype
pub fn convConst( self: *Builder, val: Constant, ty: Type, ) Allocator.Error!Constant
Parameters
self: *Builder
val: Constant
ty: Type
Source
pub fn convConst(
self: *Builder,
val: Constant,
ty: Type,
) Allocator.Error!Constant {
try self.ensureUnusedConstantCapacity(1, Constant.Cast, 0);
return self.convConstAssumeCapacity(val, ty);
}