Skip to content

Commit

Permalink
Fix bug with naming after new registry refactor (Bears-R-Us#2722)
Browse files Browse the repository at this point in the history
unregister an array when that `name` field isn't set when creating
registry entries. To get around that, in the initializers, the name
field needs to be set. This PR handles that for the `ArrayRegEntry`,
which was causing testing failures, but there are other types that
have multiple names where it isn't as clear what "name" should be.
I suspect those cases need to be fixed as well.
  • Loading branch information
bmcdonald3 committed Aug 28, 2023
1 parent 2653b38 commit 3981c71
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/MultiTypeRegEntry.chpl
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ module MultiTypeRegEntry {
proc init(array_name: string, objType: ObjType) {
super.init(objType);
this.array = array_name;
this.name = array_name;
}

proc asMap(st: borrowed SymTab): map(string, string) throws {
Expand All @@ -96,6 +97,7 @@ module MultiTypeRegEntry {
this.array = array_name;
this.width = width;
this.reverse = reverse;
this.name = array_name;
}

proc asMap(st:borrowed SymTab): map(string, string) throws {
Expand Down

0 comments on commit 3981c71

Please sign in to comment.