[clang] [libcxxabi] [libunwind] [llvm] [WebAssembly] Call EH personality function instead of `Unwind_CallPersonality` (PR #209282)

Demetrius Kanios via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 17 00:02:50 PDT 2026


================
@@ -274,15 +259,12 @@ bool WasmEHPrepareImpl::prepareEHPads(Function &F) {
   // instruction selection.
   CatchF = Intrinsic::getOrInsertDeclaration(&M, Intrinsic::wasm_catch);
 
-  // FIXME: Verify this is really supported for current module.
-  StringRef UnwindCallPersonalityName =
-      RTLIB::RuntimeLibcallsInfo::getLibcallImplName(
-          RTLIB::impl__Unwind_CallPersonality);
+  auto *PersPrototype =
+      FunctionType::get(IRB.getInt32Ty(), {IRB.getPtrTy()}, false);
----------------
QuantumSegfault wrote:

An oversight. Copied from #175202.

But it seems we want it anyway

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


More information about the cfe-commits mailing list