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

Oh you want an assertion for `CompatibleOBTDiscards`? like `llvm_unreachable`? 

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