================
@@ -17669,6 +17651,12 @@ bool Sema::DiagnoseAssignmentResult(AssignConvertType
ConvTy,
case AssignConvertType::CompatibleOBTDiscards:
return false;
case AssignConvertType::IncompatibleOBTKinds: {
+ if (SrcType->isArrayType())
----------------
AaronBallman wrote:
I think `SrcType->canDecayToPointerType()` might make more sense here as well,
but I'd like to hear from @ojhunt (we'd just switch the `assert` to come first,
but it would be functionally the same). But this would then handle
`!isArrayParameterType()` case which was something I hadn't considered before.
https://github.com/llvm/llvm-project/pull/187038
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits