[clang] [CIR] Use CIR integer type for EH personality function signature (PR #215901)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 12 14:53:01 PDT 2026
================
@@ -189,7 +189,7 @@ const EHPersonality &EHPersonality::get(CIRGenFunction &cgf) {
static llvm::StringRef getPersonalityFn(CIRGenModule &cgm,
const EHPersonality &personality) {
// Create the personality function type: i32 (...)
- mlir::Type i32Ty = cgm.getBuilder().getI32Type();
+ mlir::Type i32Ty = cgm.getBuilder().getSInt32Ty();
----------------
andykaylor wrote:
We weren't checking the signature of the personality function in any of our tests. We had checks like this:
`// CIR: cir.func {{.*}} @_Z21try_catch_with_allocav() personality(@__gxx_personality_v0)`
But none for the declaration line. So the only effect it was having was to cause the ABI lowering to fail, and Adam had disabled the ABI lowering in all the tests where that happened.
https://github.com/llvm/llvm-project/pull/215901
More information about the cfe-commits
mailing list