Skip to content

Commit b8c8844

Browse files
committed
Improve UncurriedCandidate::dump to include the type information for a candidate,
NFC since this is just a debugging aid.
1 parent bc46ab5 commit b8c8844

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/Sema/CSDiag.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,10 +1143,15 @@ namespace {
11431143
return funcTy->getResult();
11441144
return Type();
11451145
}
1146-
1146+
11471147
void dump() const {
11481148
decl->dumpRef(llvm::errs());
1149-
llvm::errs() << " - uncurry level " << level << "\n";
1149+
llvm::errs() << " - uncurry level " << level;
1150+
1151+
if (auto FT = getUncurriedFunctionType())
1152+
llvm::errs() << " - type: " << Type(FT) << "\n";
1153+
else
1154+
llvm::errs() << " - type <<NONFUNCTION>>: " << decl->getType() << "\n";
11501155
}
11511156
};
11521157

0 commit comments

Comments
 (0)