Skip to content

Commit 566a84d

Browse files
committed
[CodeCompletion] Handle new kinds in type relation printing
1 parent e9c51a0 commit 566a84d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/IDE/CodeCompletion.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ void CodeCompletionResult::print(raw_ostream &OS) const {
695695
Prefix.append(Twine(NumBytesToErase).str());
696696
Prefix.append("]");
697697
}
698-
switch (TypeDistance) {
698+
switch (ExpectedTypeRelation(TypeDistance)) {
699699
case ExpectedTypeRelation::Invalid:
700700
Prefix.append("/TypeRelation[Invalid]");
701701
break;
@@ -705,6 +705,8 @@ void CodeCompletionResult::print(raw_ostream &OS) const {
705705
case ExpectedTypeRelation::Convertible:
706706
Prefix.append("/TypeRelation[Convertible]");
707707
break;
708+
case ExpectedTypeRelation::NotApplicable:
709+
case ExpectedTypeRelation::Unknown:
708710
case ExpectedTypeRelation::Unrelated:
709711
break;
710712
}

0 commit comments

Comments
 (0)