Skip to content

Commit 21f97a5

Browse files
committed
Uses isa instead of is for type check
1 parent 6a92a6d commit 21f97a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/CSDiag.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6686,7 +6686,7 @@ static bool diagnoseKeyPathComponents(ConstraintSystem &CS, KeyPathExpr *KPE,
66866686
corrections);
66876687

66886688
if (currentType)
6689-
if (currentType->is<TupleType>()) {
6689+
if (isa<TupleType>(currentType.getPointer())) {
66906690
TC.diagnose(KPE->getLoc(), diag::expr_keypath_unimplemented_tuple);
66916691
isInvalid = true;
66926692
break;

0 commit comments

Comments
 (0)