================
@@ -14384,6 +14386,8 @@ 
TreeTransform<Derived>::TransformCXXThrowExpr(CXXThrowExpr *E) {
   if (SubExpr.isInvalid())
     return ExprError();
 
+  getSema().DiagnoseExceptionUse(E->getThrowLoc(), /* IsTry */ false);
----------------
erichkeane wrote:

```suggestion
  getSema().DiagnoseExceptionUse(E->getThrowLoc(), /* IsTry=*/ false);
```

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

Reply via email to