Skip to content

Commit 17f80b1

Browse files
committed
Enable by default
1 parent af5954d commit 17f80b1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Basic/LangOptions.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,9 @@ bool LangOptions::isCustomConditionalCompilationFlagSet(StringRef Name) const {
235235
}
236236

237237
bool LangOptions::hasFeature(Feature feature) const {
238+
if (feature == Feature::StatementExpressions)
239+
return true;
240+
238241
if (Features.contains(feature))
239242
return true;
240243

0 commit comments

Comments
 (0)