[clang] [CIR] Upstream Exception CXXTryStmt (PR #162528)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 8 13:27:14 PDT 2025


================
@@ -64,3 +65,157 @@ void CIRGenFunction::emitAnyExprToExn(const Expr *e, Address addr) {
   // Deactivate the cleanup block.
   assert(!cir::MissingFeatures::ehCleanupScope());
 }
+
+mlir::LogicalResult CIRGenFunction::emitCXXTryStmt(const CXXTryStmt &s) {
+  auto loc = getLoc(s.getSourceRange());
----------------
andykaylor wrote:

```suggestion
  mlir::Location loc = getLoc(s.getSourceRange());
```

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


More information about the cfe-commits mailing list