Skip to content

Commit

Permalink
Support PointerType in aggregateElemType
Browse files Browse the repository at this point in the history
  • Loading branch information
pwaller committed Feb 23, 2019
1 parent 47f6d07 commit 89fc9cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ir/inst_aggregate.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ func aggregateElemType(t types.Type, indices []uint64) types.Type {
return aggregateElemType(t.ElemType, indices[1:])
case *types.StructType:
return aggregateElemType(t.Fields[indices[0]], indices[1:])
case *types.PointerType:
return aggregateElemType(t.ElemType, indices[1:])
default:
panic(fmt.Errorf("support for aggregate type %T not yet implemented", t))
}
Expand Down

0 comments on commit 89fc9cc

Please sign in to comment.