@@ -381,9 +381,9 @@ class HeapType {
381381 bool isString () const ;
382382 bool isBottom () const ;
383383 bool isOpen () const ;
384- bool isShared () const { return getShareability () == Shared; }
384+ bool isShared () const { return getShared () == Shared; }
385385
386- Shareability getShareability () const ;
386+ Shareability getShared () const ;
387387
388388 Signature getSignature () const ;
389389 Continuation getContinuation () const ;
@@ -407,13 +407,13 @@ class HeapType {
407407 // Get the bottom heap type for this heap type's hierarchy.
408408 BasicHeapType getUnsharedBottom () const ;
409409 BasicHeapType getBottom () const {
410- return HeapType (getUnsharedBottom ()).getBasic (getShareability ());
410+ return HeapType (getUnsharedBottom ()).getBasic (getShared ());
411411 }
412412
413413 // Get the top heap type for this heap type's hierarchy.
414414 BasicHeapType getUnsharedTop () const ;
415415 BasicHeapType getTop () const {
416- return HeapType (getUnsharedTop ()).getBasic (getShareability ());
416+ return HeapType (getUnsharedTop ()).getBasic (getShared ());
417417 }
418418
419419 // Get the recursion group for this non-basic type.
@@ -658,7 +658,7 @@ struct TypeBuilder {
658658 void createRecGroup (size_t i, size_t length);
659659
660660 void setOpen (size_t i, bool open = true );
661- void setShareability (size_t i, Shareability share);
661+ void setShared (size_t i, Shareability share = Shared );
662662
663663 enum class ErrorReason {
664664 // There is a cycle in the supertype relation.
@@ -731,8 +731,8 @@ struct TypeBuilder {
731731 builder.setOpen (index, open);
732732 return *this ;
733733 }
734- Entry& setShareability (Shareability share) {
735- builder.setShareability (index, share);
734+ Entry& setShared (Shareability share = Unshared ) {
735+ builder.setShared (index, share);
736736 return *this ;
737737 }
738738 };
0 commit comments