Skip to content

Commit f7362e7

Browse files
committed
[lldb] Improve the wording of the error message if no type info is found
rdar://145099577 (cherry picked from commit d080aa9)
1 parent 886d8cc commit f7362e7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lldb/source/Host/macosx/objcxx/Host.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,6 +1248,7 @@ typedef int (*posix_spawnattr_setarchpref_np_t)(
12481248
const char *tmp_argv[2];
12491249
char *const *argv = const_cast<char *const *>(
12501250
launch_info.GetArguments().GetConstArgumentVector());
1251+
12511252
Environment::Envp envp = launch_info.GetEnvironment().getEnvp();
12521253
if (argv == NULL) {
12531254
// posix_spawn gets very unhappy if it doesn't have at least the program

lldb/source/Plugins/LanguageRuntime/Swift/ReflectionContext.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,10 @@ class TargetReflectionContext : public ReflectionContextInterface {
204204
auto type_info = m_reflection_ctx.getTypeInfo(&type_ref, provider);
205205
if (!type_info) {
206206
std::stringstream ss;
207+
ss << "Could not find type info for ";
207208
type_ref.dump(ss);
208-
return llvm::createStringError("Could not get type info for typeref: " +
209-
ss.str());
209+
ss << " in reflection metadata";
210+
return llvm::createStringError(ss.str());
210211
}
211212

212213
if (log && log->GetVerbose()) {

0 commit comments

Comments
 (0)