@@ -295,18 +295,18 @@ bool LangOptions::isCustomConditionalCompilationFlagSet(StringRef Name) const {
295295}
296296
297297bool LangOptions::FeatureState::isEnabled () const {
298- return this ->state != FeatureState::Off;
298+ return this ->state != FeatureState::Kind:: Off;
299299}
300300
301301bool LangOptions::FeatureState::isEnabledForAdoption () const {
302302 ASSERT (isFeatureAdoptable (this ->feature ) &&
303303 " You forgot to make the feature adoptable!" );
304304
305- return this ->state == FeatureState::EnabledForAdoption;
305+ return this ->state == FeatureState::Kind:: EnabledForAdoption;
306306}
307307
308308LangOptions::FeatureStateStorage::FeatureStateStorage ()
309- : states(numFeatures(), FeatureState::Off) {}
309+ : states(numFeatures(), FeatureState::Kind:: Off) {}
310310
311311void LangOptions::FeatureStateStorage::setState (Feature feature,
312312 FeatureState::Kind state) {
@@ -329,7 +329,7 @@ LangOptions::FeatureState LangOptions::getFeatureState(Feature feature) const {
329329
330330 if (auto version = getFeatureLanguageVersion (feature)) {
331331 if (this ->isSwiftVersionAtLeast (*version)) {
332- return FeatureState (feature, FeatureState::Enabled);
332+ return FeatureState (feature, FeatureState::Kind:: Enabled);
333333 }
334334 }
335335
@@ -361,14 +361,15 @@ bool LangOptions::hasFeature(llvm::StringRef featureName) const {
361361void LangOptions::enableFeature (Feature feature, bool forAdoption) {
362362 if (forAdoption) {
363363 ASSERT (isFeatureAdoptable (feature));
364- this ->featureStates .setState (feature, FeatureState::EnabledForAdoption);
364+ this ->featureStates .setState (feature,
365+ FeatureState::Kind::EnabledForAdoption);
365366 } else {
366- this ->featureStates .setState (feature, FeatureState::Enabled);
367+ this ->featureStates .setState (feature, FeatureState::Kind:: Enabled);
367368 }
368369}
369370
370371void LangOptions::disableFeature (Feature feature) {
371- this ->featureStates .setState (feature, FeatureState::Off);
372+ this ->featureStates .setState (feature, FeatureState::Kind:: Off);
372373}
373374
374375void LangOptions::setHasAtomicBitWidth (llvm::Triple triple) {
0 commit comments