Skip to content

Commit bc53404

Browse files
Merge pull request #3689 from adrian-prantl/rewordwarning
Further improve wording of error message
2 parents 1e34af3 + 97281bc commit bc53404

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lldb/source/Target/Process.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5905,9 +5905,10 @@ void Process::PrintWarningToolchainMismatch(const SymbolContext &sc) {
59055905
if (sym_file_version != swift_version)
59065906
PrintWarning(
59075907
Process::Warnings::eWarningsToolchainMismatch, sc.module_sp.get(),
5908-
"%s was compiled with a Swift compiler from a different toolchain "
5908+
"%s was compiled with a different Swift compiler "
59095909
"(version '%s') than the Swift compiler integrated into LLDB "
5910-
"(version '%s'). Swift expression evaluation may not work.\n",
5910+
"(version '%s'). Swift expression evaluation requires a matching "
5911+
"compiler and debugger from the same toolchain.",
59115912
sc.module_sp->GetFileSpec().GetFilename().GetCString(),
59125913
sym_file_version.getAsString().c_str(),
59135914
swift_version.getAsString().c_str());

lldb/test/Shell/Swift/ToolchainMismatch.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ run
3232
quit
3333

3434
# The {{ }} avoids accidentally matching the input script!
35-
# CHECK: {{a\.out}} was compiled with a Swift compiler from a different toolchain
35+
# CHECK: {{a\.out}} was compiled with a different Swift compiler
3636
# CHECK: stop reason{{ = }}breakpoint
37-
# SANITY-NOT: {{a\.out}} was compiled with a Swift compiler from a different toolchain
37+
# SANITY-NOT: {{a\.out}} was compiled with a different Swift compiler
3838
# SANITY: stop reason{{ = }}breakpoint

0 commit comments

Comments
 (0)