Skip to content

Commit fbdc88e

Browse files
committed
[lldb] Stop unconditionally emitting "could not resolve type"
1 parent 8d6dfcd commit fbdc88e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8080,12 +8080,13 @@ void SwiftASTContext::DumpTypeDescription(opaque_compiler_type_t type,
80808080
}
80818081
} break;
80828082
}
8083+
}
80838084

8084-
if (buf.size() > 0) {
8085-
s->Write(buf.data(), buf.size());
8086-
}
8085+
if (buf.size() > 0) {
8086+
s->Write(buf.data(), buf.size());
8087+
} else {
8088+
s->Printf("<could not resolve type>");
80878089
}
8088-
s->Printf("<could not resolve type>");
80898090
}
80908091

80918092
TypeSP SwiftASTContext::GetCachedType(ConstString mangled) {

0 commit comments

Comments
 (0)