Skip to content

Commit 4f2ad8f

Browse files
committed
Sema: Debug messages for TypeCheckCircularity.cpp
1 parent 7ed5509 commit 4f2ad8f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Sema/TypeCheckCircularity.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,8 @@ bool CircularityChecker::expandType(CanType type, unsigned depth) {
216216

217217
/// Visit a tuple type and try to expand it one level.
218218
bool CircularityChecker::expandTuple(CanTupleType tupleType, unsigned depth) {
219+
LLVM_DEBUG(llvm::dbgs() << std::string(depth, ' ') << "expanding tuple "
220+
<< tupleType << "\n";);
219221
startExpandingType(tupleType);
220222

221223
for (auto eltType : tupleType.getElementTypes()) {
@@ -229,6 +231,8 @@ bool CircularityChecker::expandTuple(CanTupleType tupleType, unsigned depth) {
229231
/// Visit a nominal type and try to expand it one level.
230232
bool CircularityChecker::expandNominal(CanType type, NominalTypeDecl *D,
231233
unsigned depth) {
234+
LLVM_DEBUG(llvm::dbgs() << std::string(depth, ' ') << "expanding nominal "
235+
<< type << "\n";);
232236
if (auto S = dyn_cast<StructDecl>(D)) {
233237
return expandStruct(type, S, depth);
234238
} else if (auto E = dyn_cast<EnumDecl>(D)) {

0 commit comments

Comments
 (0)