[clang] [CIR] Use CIR integer type for EH personality function signature (PR #215901)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 12 14:56:18 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();
----------------
erichkeane wrote:

Horrifying!  Could we change SOMETHING somewhere to match against the type of the personality? 

https://github.com/llvm/llvm-project/pull/215901


More information about the cfe-commits mailing list