================
@@ -1874,9 +1874,11 @@ ExprResult Sema::CreateGenericSelectionExpr(
 
         if (D != 0) {
           Diag(Types[i]->getTypeLoc().getBeginLoc(), D)
-            << Types[i]->getTypeLoc().getSourceRange()
-            << Types[i]->getType();
-          TypeErrorFound = true;
+              << Types[i]->getTypeLoc().getSourceRange() << 
Types[i]->getType();
+          if (getDiagnostics().getDiagnosticLevel(
----------------
AaronBallman wrote:

Yeah, I was on the fence between setting a flag and checking the diagnostic 
level and went this route. But this is asking the diagnostics engine!

https://github.com/llvm/llvm-project/pull/141596
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to