Skip to content

Commit

Permalink
Remove workaround in chpl__defaultDistInitPrivate
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Rift <anna.rift@hpe.com>
  • Loading branch information
riftEmber committed Aug 15, 2024
1 parent c0d01f1 commit bb0b957
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions modules/internal/DefaultRectangular.chpl
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,7 @@ module DefaultRectangular {

proc chpl_defaultDistInitPrivate() {
if defaultDist._value==nil {
// FIXME benharsh: Here's what we want to do:
// defaultDist = new dmap(new DefaultDist());
// The problem is that the LHS of the "proc =" for _distributions
// loses its ref intent in the removeWrapRecords pass.
//
// The code below is copied from the contents of the "proc =".
const nd = new dmap(new unmanaged DefaultDist());
__primitive("move", defaultDist, chpl__autoCopy(nd.clone(),
definedConst=false));
defaultDist = new dmap(new DefaultDist());
}
}

Expand Down

0 comments on commit bb0b957

Please sign in to comment.