Skip to content

Commit d3e9eaa

Browse files
author
Amritpan Kaur
committed
[ConstraintSystem] Add labels to ScoreKinds types and local Score value.
1 parent 481a561 commit d3e9eaa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

include/swift/Sema/ConstraintSystem.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,15 +1108,14 @@ struct Score {
11081108
bool hasNonDefault = false;
11091109
for (unsigned int i = 0; i < NumScoreKinds; ++i) {
11101110
if (Data[i] != 0) {
1111-
out << " [";
1111+
out << " [component: ";
11121112
out << getNameFor(ScoreKind(i));
1113-
out << "(s) = ";
1113+
out << "(s), value: ";
11141114
out << std::to_string(Data[i]);
11151115
out << "]";
11161116
hasNonDefault = true;
11171117
}
11181118
}
1119-
11201119
if (!hasNonDefault) {
11211120
out << " <default ";
11221121
out << *this;

0 commit comments

Comments
 (0)