Skip to content

Commit 663dc85

Browse files
committed
Sema: More LLVM_DEBUGs for associated type inference
1 parent 7f83f16 commit 663dc85

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/Sema/AssociatedTypeInference.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1921,11 +1921,15 @@ static Type getWithoutProtocolTypeAliases(Type type) {
19211921
/// Also see simplifyCurrentTypeWitnesses().
19221922
static Type getWitnessTypeForMatching(NormalProtocolConformance *conformance,
19231923
ValueDecl *witness) {
1924-
if (witness->isRecursiveValidation())
1924+
if (witness->isRecursiveValidation()) {
1925+
LLVM_DEBUG(llvm::dbgs() << "Recursive validation\n";);
19251926
return Type();
1927+
}
19261928

1927-
if (witness->isInvalid())
1929+
if (witness->isInvalid()) {
1930+
LLVM_DEBUG(llvm::dbgs() << "Invalid witness\n";);
19281931
return Type();
1932+
}
19291933

19301934
if (!witness->getDeclContext()->isTypeContext()) {
19311935
// FIXME: Could we infer from 'Self' to make these work?

0 commit comments

Comments
 (0)