[clang] [CIR] Upstream Re-Throw with no return (PR #154994)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 22 12:34:54 PDT 2025


================
@@ -657,6 +657,11 @@ class ScalarExprEmitter : public StmtVisitor<ScalarExprEmitter, mlir::Value> {
     return cgf.emitCXXNewExpr(e);
   }
 
+  mlir::Value VisitCXXThrowExpr(const CXXThrowExpr *e) {
+    cgf.emitCXXThrowExpr(e);
+    return nullptr;
----------------
andykaylor wrote:

```suggestion
    return {};
```

https://github.com/llvm/llvm-project/pull/154994


More information about the cfe-commits mailing list