Skip to content

Commit d3ee267

Browse files
author
git apple-llvm automerger
committed
Merge commit '7a7660465a6b' from swift/release/6.3 into stable/21.x
2 parents 9fe9cd0 + 7a76604 commit d3ee267

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6715,12 +6715,14 @@ SwiftASTContext::GetBitSize(opaque_compiler_type_t type,
67156715
exe_scope->CalculateExecutionContext(exe_ctx);
67166716
CompilerType bound_type =
67176717
BindGenericTypeParameters({weak_from_this(), type}, exe_scope);
6718+
if (!bound_type)
6719+
return llvm::createStringError("Cannot bind type.");
67186720

67196721
// Check that the type has been bound successfully -- and if not,
67206722
// log the event and bail out to avoid an infinite loop.
67216723
swift::CanType swift_bound_type(GetCanonicalSwiftType(bound_type));
67226724
if (!swift_bound_type || swift_bound_type->hasTypeParameter())
6723-
return llvm::createStringError("Cannot bind type: %s",
6725+
return llvm::createStringError("Cannot canonicalize: %s",
67246726
bound_type.GetTypeName().AsCString(""));
67256727

67266728
// Note that the bound type may be in a different AST context.

0 commit comments

Comments
 (0)