Skip to content

Commit fa7c53b

Browse files
authored
Merge pull request swiftlang#35440 from xedin/print-favored-attrbitue
[ConstraintSystem] NFC: Print out favored attribute associated with d…
2 parents cd2d4cc + 86b1449 commit fa7c53b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Sema/Constraint.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,8 @@ void Constraint::print(llvm::raw_ostream &Out, SourceManager *sm) const {
323323
[&](Constraint *constraint) {
324324
if (constraint->isDisabled())
325325
Out << "> [disabled] ";
326+
else if (constraint->isFavored())
327+
Out << "> [favored] ";
326328
else
327329
Out << "> ";
328330
constraint->print(Out, sm);

0 commit comments

Comments
 (0)