================
@@ -17649,6 +17651,9 @@ bool Sema::DiagnoseAssignmentResult(AssignConvertType 
ConvTy,
   case AssignConvertType::CompatibleOBTDiscards:
     return false;
   case AssignConvertType::IncompatibleOBTKinds: {
+    if (SrcType->isArrayType() || SrcType->isFunctionType()) {
----------------
shafik wrote:

IF you have a way of triggering the diagnostic that is great, if you don't then 
you don't. We want to avoid uncovered code as much as possible, it just gives 
rise to regressions over the long-term.

https://github.com/llvm/llvm-project/pull/183616
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to