Temporarily reinstate LangOptions::EnableBareSlashRegexLiterals for LLDB

This commit is contained in:
Doug Gregor
2022-05-29 22:44:06 -07:00
parent 3cf576da23
commit 2cc91d04c9
2 changed files with 7 additions and 0 deletions

View File

@@ -229,6 +229,10 @@ bool LangOptions::hasFeature(Feature feature) const {
if (Features.contains(feature))
return true;
if (feature == Feature::BareSlashRegexLiterals &&
EnableBareSlashRegexLiterals)
return true;
if (auto version = getFeatureLanguageVersion(feature))
return isSwiftVersionAtLeast(*version);