Skip to content

Commit 0714dfe

Browse files
committed
Sema: Convert to rvalue type before diagnosing protocol type member failure
1 parent facb2d8 commit 0714dfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/CSDiagnostics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1978,7 +1978,7 @@ bool AllowProtocolTypeMemberFailure::diagnoseAsError() {
19781978
}
19791979

19801980
emitDiagnostic(getAnchor()->getLoc(),
1981-
diag::could_not_use_member_on_existential, getBaseType(),
1981+
diag::could_not_use_member_on_existential, getBaseType()->getRValueType(),
19821982
getName())
19831983
.highlight(nameLoc.getSourceRange())
19841984
.highlight(baseExpr->getSourceRange());

0 commit comments

Comments
 (0)