Skip to content

Commit 280c91a

Browse files
committed
Fix the dumping of AbstractionPatterns with substitutions
1 parent a9491f6 commit 280c91a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/SIL/IR/AbstractionPattern.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,12 +1373,12 @@ static void printGenerics(raw_ostream &out, const AbstractionPattern &pattern) {
13731373
// It'd be really nice if we could get these interleaved with the types.
13741374
if (auto subs = pattern.getGenericSubstitutions()) {
13751375
out << "@<";
1376-
bool first = false;
1376+
bool first = true;
13771377
for (auto sub : subs.getReplacementTypes()) {
13781378
if (!first) {
13791379
out << ",";
13801380
} else {
1381-
first = true;
1381+
first = false;
13821382
}
13831383
out << sub;
13841384
}

0 commit comments

Comments
 (0)