The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. This fork is used to manage Swift’s stable releases of Clang as well as support the Swift project.
The old behavior was to return a null string in the error case,when refactoring the error handling I thought it would be a good idea to print the error in the description, but that breaks clients that try to print a description first and then do something else in the error case. The API is not great but it's clear that in-band errors are also not a good idea.
rdar://133956263
(cherry picked from commit 7553fb127485d034e2ffdbb5461fef2b6f04b989)
The old behavior was to return a null string in the error case,when refactoring the error handling I thought it would be a good idea to print the error in the description, but that breaks clients that try to print a description first and then do something else in the error case. The API is not great but it's clear that in-band errors are also not a good idea.
rdar://133956263 (cherry picked from commit 7553fb127485d034e2ffdbb5461fef2b6f04b989)
Conflicts: lldb/test/API/commands/expression/diagnostics/TestExprDiagnostics.py