================
@@ -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
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits