================
@@ -363,8 +419,20 @@ void CIRGenFunction::popCleanupBlock() {
     ehStack.popCleanup();
     assert(ehStack.hasNormalCleanups() == hasEnclosingCleanups);
 
+    mlir::Block &block = cleanupScope.getCleanupRegion().back();
----------------
andykaylor wrote:

The code above and below the `emitCleanup` call is duplicated from above. Can 
you move it inside of `emitCleanup`?

https://github.com/llvm/llvm-project/pull/180276
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to