Skip to content

Commit afcd9c2

Browse files
authored
Merge pull request swiftlang#7935 from bnbarham/use-swift-features
[LLDB] Use Swift feature flag to enable bare regex literals
2 parents a0e5f4b + 15995f4 commit afcd9c2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lldb/source/Plugins/ExpressionParser/Swift/SwiftExpressionParser.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1371,8 +1371,9 @@ static llvm::Expected<ParsedExpression> ParseAndImport(
13711371

13721372
bool enable_bare_slash_regex_literals =
13731373
sc.target_sp->GetSwiftEnableBareSlashRegex();
1374-
invocation.getLangOptions().EnableBareSlashRegexLiterals =
1375-
enable_bare_slash_regex_literals;
1374+
if (enable_bare_slash_regex_literals) {
1375+
invocation.getLangOptions().enableFeature(swift::Feature::BareSlashRegexLiterals);
1376+
}
13761377

13771378
auto should_use_prestable_abi = [&]() {
13781379
lldb::StackFrameSP this_frame_sp(stack_frame_wp.lock());

0 commit comments

Comments
 (0)