Skip to content

Commit c1c4ca5

Browse files
committed
[CSDiag] Simplify the code for checking if the type is a propertyWrapper
1 parent f47f5c4 commit c1c4ca5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Sema/CSDiag.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3356,7 +3356,8 @@ class ArgumentMatcher : public MatchCallArgumentListener {
33563356
if (auto TE = dyn_cast<TypeExpr>(FnExpr)) {
33573357
if (TE->getInstanceType()
33583358
->getAnyNominal()
3359-
->getPropertyWrapperTypeInfo()) {
3359+
->getAttrs()
3360+
.hasAttribute<PropertyWrapperAttr>()) {
33603361
if (auto parent = CandidateInfo.CS.getParentExpr(FnExpr)) {
33613362
if (auto CE = dyn_cast<CallExpr>(parent)) {
33623363
return CE->isImplicit();

0 commit comments

Comments
 (0)