Skip to content

Commit d1323bd

Browse files
committed
Fix hard-coded Element identifier in CSDiag
1 parent d30b05c commit d1323bd

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
@@ -6960,7 +6960,7 @@ bool FailureDiagnosis::visitArrayExpr(ArrayExpr *E) {
69606960
contextualElementType = ProtocolConformanceRef::getTypeWitnessByName(
69616961
contextualType,
69626962
*Conformance,
6963-
CS->getASTContext().Id_Element,
6963+
CS->getASTContext().getIdentifier("ArrayLiteralElement"),
69646964
&CS->TC)
69656965
->getDesugaredType();
69666966
elementTypePurpose = CTP_ArrayElement;

0 commit comments

Comments
 (0)