Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6603,7 +6603,7 @@ SwiftASTContext::GetBitSize(opaque_compiler_type_t type,
// Check that the type has been bound successfully -- and if not,
// log the event and bail out to avoid an infinite loop.
swift::CanType swift_bound_type(GetCanonicalSwiftType(bound_type));
if (swift_bound_type && swift_bound_type->hasTypeParameter())
if (!swift_bound_type || swift_bound_type->hasTypeParameter())
return llvm::createStringError("Cannot bind type: %s",
bound_type.GetTypeName().AsCString(""));

Expand Down