@@ -3002,18 +3002,18 @@ class OpaqueTypeDecl final :
3002
3002
}
3003
3003
3004
3004
void setUniqueUnderlyingTypeSubstitutions (SubstitutionMap subs) {
3005
- assert (!UniqueUnderlyingType.hasValue () && " resetting underlying type?!" );
3005
+ assert (!UniqueUnderlyingType.has_value () && " resetting underlying type?!" );
3006
3006
UniqueUnderlyingType = subs;
3007
3007
}
3008
3008
3009
3009
bool hasConditionallyAvailableSubstitutions () const {
3010
- return ConditionallyAvailableTypes.hasValue ();
3010
+ return ConditionallyAvailableTypes.has_value ();
3011
3011
}
3012
3012
3013
3013
ArrayRef<ConditionallyAvailableSubstitutions *>
3014
3014
getConditionallyAvailableSubstitutions () const {
3015
3015
assert (ConditionallyAvailableTypes);
3016
- return ConditionallyAvailableTypes.getValue ();
3016
+ return ConditionallyAvailableTypes.value ();
3017
3017
}
3018
3018
3019
3019
void setConditionallyAvailableSubstitutions (
@@ -4891,7 +4891,7 @@ class ProtocolDecl final : public NominalTypeDecl {
4891
4891
4892
4892
// / Has the requirement signature been computed yet?
4893
4893
bool isRequirementSignatureComputed () const {
4894
- return RequirementSig.hasValue ();
4894
+ return RequirementSig.has_value ();
4895
4895
}
4896
4896
4897
4897
void setRequirementSignature (RequirementSignature requirementSig);
@@ -6451,8 +6451,8 @@ class BodyAndFingerprint {
6451
6451
6452
6452
public:
6453
6453
BodyAndFingerprint (BraceStmt *body, Optional<Fingerprint> fp)
6454
- : BodyAndHasFp(body, fp.hasValue ()),
6455
- Fp (fp.hasValue () ? *fp : Fingerprint::ZERO()) {}
6454
+ : BodyAndHasFp(body, fp.has_value ()),
6455
+ Fp (fp.has_value () ? *fp : Fingerprint::ZERO()) {}
6456
6456
BodyAndFingerprint () : BodyAndFingerprint(nullptr , None) {}
6457
6457
6458
6458
BraceStmt *getBody () const { return BodyAndHasFp.getPointer (); }
@@ -6465,7 +6465,7 @@ class BodyAndFingerprint {
6465
6465
}
6466
6466
6467
6467
void setFingerprint (Optional<Fingerprint> fp) {
6468
- if (fp.hasValue ()) {
6468
+ if (fp.has_value ()) {
6469
6469
Fp = *fp;
6470
6470
BodyAndHasFp.setInt (true );
6471
6471
} else {
0 commit comments