Function arrayConst [src]

Prototype

pub fn arrayConst(self: *Builder, ty: Type, vals: []const Constant) Allocator.Error!Constant

Parameters

self: *Builderty: Typevals: []const Constant

Source

pub fn arrayConst(self: *Builder, ty: Type, vals: []const Constant) Allocator.Error!Constant { try self.ensureUnusedConstantCapacity(1, Constant.Aggregate, vals.len); return self.arrayConstAssumeCapacity(ty, vals); }