[llvm] [CodeGen][ARM64EC] Mangle EH personality handler names (PR #121652)

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 6 16:26:45 PST 2025


================
@@ -807,6 +807,17 @@ bool AArch64Arm64ECCallLowering::runOnModule(Module &Mod) {
   SetVector<GlobalAlias *> PatchableFns;
 
   for (Function &F : Mod) {
+    if (F.hasPersonalityFn()) {
+      GlobalValue *PersFn =
+          dyn_cast<GlobalValue>(F.getPersonalityFn()->stripPointerCasts());
----------------
efriedma-quic wrote:

`cast<>`, unless you meant to null-check PersFn.

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


More information about the llvm-commits mailing list