From 42efd8cb9ce436a865c46f733f71fde99a07a1b8 Mon Sep 17 00:00:00 2001 From: Bruno Cardoso Lopes Date: Tue, 10 Sep 2024 14:23:14 -0700 Subject: [PATCH] [CIR] Add some extra dumping to help with intermitent bug We haven't been able to find the root cause of https://github.com/llvm/clangir/issues/829 just yet, the problem does also not show up under a ASANified build. Add some extra information before we crash, hopefully that might shed some light. --- clang/lib/CIR/CodeGen/CIRGenException.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/clang/lib/CIR/CodeGen/CIRGenException.cpp b/clang/lib/CIR/CodeGen/CIRGenException.cpp index a83723498385..41c69ce7df6b 100644 --- a/clang/lib/CIR/CodeGen/CIRGenException.cpp +++ b/clang/lib/CIR/CodeGen/CIRGenException.cpp @@ -839,6 +839,7 @@ mlir::Operation *CIRGenFunction::getInvokeDestImpl() { if (Personality.usesFuncletPads()) { // We don't need separate landing pads in the funclet model. + llvm::errs() << "PersonalityFn: " << Personality.PersonalityFn << "\n"; llvm_unreachable("NYI"); } else { mlir::cir::TryOp tryOp = nullptr;