File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed
lldb/source/Plugins/LanguageRuntime/Swift Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -180,8 +180,7 @@ class TargetReflectionContext : public ReflectionContextInterface {
180
180
auto *rti =
181
181
m_type_converter.getClassInstanceTypeInfo (&type_ref, *start, provider);
182
182
if (!rti)
183
- return llvm::createStringError (
184
- " converter returned nullptr typeinfo but no error" );
183
+ return llvm::createStringError (m_type_converter.getLastError ());
185
184
return *rti;
186
185
}
187
186
@@ -201,14 +200,12 @@ class TargetReflectionContext : public ReflectionContextInterface {
201
200
provider ? provider->getId () : 0 , ss.str ());
202
201
}
203
202
204
- auto type_info = m_reflection_ctx.getTypeInfo (&type_ref, provider);
205
- if (!type_info) {
206
- std::stringstream ss;
207
- ss << " Could not find type info for " ;
208
- type_ref.dump (ss);
209
- ss << " in reflection metadata" ;
210
- return llvm::createStringError (ss.str ());
211
- }
203
+ auto type_info = m_reflection_ctx.getTypeInfo (type_ref, provider);
204
+ if (!type_info)
205
+ return llvm::joinErrors (
206
+ llvm::createStringError (
207
+ " Could not find reflection metadata for type" ),
208
+ type_info.takeError ());
212
209
213
210
if (log && log->GetVerbose ()) {
214
211
std::stringstream ss;
You can’t perform that action at this time.
0 commit comments