[all-commits] [llvm/llvm-project] 4e302b: [CIR] Remove overly strict end_catch assertion in ...
adams381 via All-commits
all-commits at lists.llvm.org
Mon Apr 27 11:10:17 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4e302b684d885e11de1c9144db2d48c483c6339f
https://github.com/llvm/llvm-project/commit/4e302b684d885e11de1c9144db2d48c483c6339f
Author: adams381 <adams at nvidia.com>
Date: 2026-04-27 (Mon, 27 Apr 2026)
Changed paths:
M clang/lib/CIR/Dialect/Transforms/FlattenCFG.cpp
A clang/test/CIR/Transforms/flatten-try-catch-cleanup.cir
Log Message:
-----------
[CIR] Remove overly strict end_catch assertion in catch handler flattening (#193796)
The assertion in `flattenCatchHandler` required `end_catch` to be the
last operation before `yield` in catch handlers, with only branches in
between. Complex catch handlers with cleanup code or nested control flow
can have additional operations between `end_catch` and `yield`. The
yield-to-branch replacement does not depend on `end_catch` position.
Made with [Cursor](https://cursor.com)
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list