================
@@ -17555,8 +17536,9 @@ bool Sema::DiagnoseAssignmentResult(AssignConvertType
ConvTy,
}
break;
case AssignConvertType::IncompatiblePointerDiscardsQualifiers: {
- // Perform array-to-pointer decay if necessary.
- if (SrcType->isArrayType()) SrcType = Context.getArrayDecayedType(SrcType);
+ // Perform decay if necessary.
+ if (SrcType->isArrayType() || SrcType->isFunctionType())
----------------
AaronBallman wrote:
```suggestion
if (SrcType->canDecayToPointerType())
```
https://github.com/llvm/llvm-project/pull/187038
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits