[clang] Basic, Sema: introduce `__attribute__((__personality__(...)))` (PR #185225)
Saleem Abdulrasool via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 10 10:09:40 PDT 2026
================
@@ -1655,6 +1655,15 @@ void CodeGenFunction::GenerateCode(GlobalDecl GD, llvm::Function *Fn,
PGO->verifyCounterMap();
+ if (CurCodeDecl->hasAttr<PersonalityAttr>()) {
+ StringRef Identifier =
+ CurCodeDecl->getAttr<PersonalityAttr>()->getRoutine()->getName();
+ llvm::FunctionCallee PersonalityRoutine =
+ CGM.CreateRuntimeFunction(llvm::FunctionType::get(CGM.Int32Ty, true),
----------------
compnerd wrote:
Added the extra test.
https://github.com/llvm/llvm-project/pull/185225
More information about the cfe-commits
mailing list