Skip to content

Commit

Permalink
gapil/bapi: Fix tests.
Browse files Browse the repository at this point in the history
Broken by google#2173
  • Loading branch information
ben-clayton committed Sep 11, 2018
1 parent 56c4314 commit 0da6ad1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions gapil/bapi/bapi.proto
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@ message Map {
uint64 name = 2; // String ID
Type key_type = 3;
Type value_type = 4;
bool dense = 5;
}

message MapAssign {
Expand Down
1 change: 1 addition & 0 deletions gapil/bapi/decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,7 @@ func (d *decoder) map_(mapID uint64) (out *semantic.Map) {
s.Named = semantic.Named(d.str(p.Name))
s.KeyType = d.ty(p.KeyType)
s.ValueType = d.ty(p.ValueType)
s.Dense = p.Dense
if owner := d.node(p.Owner); owner != nil {
semantic.Add(owner.(semantic.Owner), s)
}
Expand Down
1 change: 1 addition & 0 deletions gapil/bapi/encode.go
Original file line number Diff line number Diff line change
Expand Up @@ -1074,6 +1074,7 @@ func (e *encoder) map_(n *semantic.Map) (outID uint64) {
Name: e.str(n.Name()),
KeyType: e.ty(n.KeyType),
ValueType: e.ty(n.ValueType),
Dense: n.Dense,
}
})
return
Expand Down

0 comments on commit 0da6ad1

Please sign in to comment.