llvm-project
49dbeca3 - [CIR] Fix missing terminators in regions with cleanup (#187604)

Commit
13 days ago
[CIR] Fix missing terminators in regions with cleanup (#187604) When a cleanup scope was created within an if operation's then or else region and the source scope ended with a return, we would fail to terminate the region following the cleanup scope, which surrounded the return operation, resulting in an MLIR verification error. This change forces the addition of terminators in the if's then and else regions.
Author
Parents
Loading