diff --git a/ir/inst_aggregate.go b/ir/inst_aggregate.go index e574d1cd..52187099 100644 --- a/ir/inst_aggregate.go +++ b/ir/inst_aggregate.go @@ -98,6 +98,7 @@ func NewInsertValue(x, elem value.Value, indices ...uint64) *InstInsertValue { } inst := &InstInsertValue{X: x, Elem: elem, Indices: indices} // Compute type. + inst.Type() return inst }