Skip to content

Commit 408bf4a

Browse files
committed
[ConstraintSystem] Add index value (as an impact of the score kind) to debug constraints.
1 parent 8ec8a12 commit 408bf4a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/swift/Sema/ConstraintSystem.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,6 +1197,9 @@ struct Score {
11971197
for (unsigned int i = 0; i < NumScoreKinds; ++i) {
11981198
if (Data[i] != 0) {
11991199
out << " [component: ";
1200+
out << "#";
1201+
out << std::to_string(i);
1202+
out << " ";
12001203
out << getNameFor(ScoreKind(i));
12011204
out << "(s), value: ";
12021205
out << std::to_string(Data[i]);

0 commit comments

Comments
 (0)