Skip to content

Commit 9142d4a

Browse files
authored
Merge pull request #3750 from apple/jdevlieghere/repl-v2
[lldb] Make sure we set the REPL language when using --repl="..."
2 parents 012e093 + 3169599 commit 9142d4a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lldb/tools/driver/Driver.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,12 @@ SBError Driver::ProcessArgs(const opt::InputArgList &args, bool &exiting) {
308308
m_option_data.m_repl = true;
309309
}
310310

311+
if (auto *arg = args.getLastArg(OPT_repl_)) {
312+
m_option_data.m_repl = true;
313+
if (auto arg_value = arg->getValue())
314+
m_option_data.m_repl_options = arg_value;
315+
}
316+
311317
#ifdef LLDB_ENABLE_SWIFT
312318
// For the Swift fork, we want to default to Swift if no REPL language is
313319
// specified.
@@ -318,12 +324,6 @@ SBError Driver::ProcessArgs(const opt::InputArgList &args, bool &exiting) {
318324
}
319325
#endif // LLDB_ENABLE_SWIFT
320326

321-
if (auto *arg = args.getLastArg(OPT_repl_)) {
322-
m_option_data.m_repl = true;
323-
if (auto arg_value = arg->getValue())
324-
m_option_data.m_repl_options = arg_value;
325-
}
326-
327327
// We need to process the options below together as their relative order
328328
// matters.
329329
for (auto *arg : args.filtered(OPT_source_on_crash, OPT_one_line_on_crash,

0 commit comments

Comments
 (0)