From 6c2d506e17d8847185995f8f80329e9c3cdfd81a Mon Sep 17 00:00:00 2001 From: Tim Besard Date: Tue, 2 May 2023 14:19:42 +0200 Subject: [PATCH] Don't explicitly remap the personality function. LLVM does this already. (cherry picked from commit b815bb160932da5300a8db71cae8d8970faaa8d5) --- src/llvm-remove-addrspaces.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/llvm-remove-addrspaces.cpp b/src/llvm-remove-addrspaces.cpp index c8c5a754cb0d3..9559ae5303794 100644 --- a/src/llvm-remove-addrspaces.cpp +++ b/src/llvm-remove-addrspaces.cpp @@ -408,9 +408,6 @@ bool removeAddrspaces(Module &M, AddrspaceRemapFunction ASRemapper) } NF->setAttributes(Attrs); - if (F->hasPersonalityFn()) - NF->setPersonalityFn(MapValue(F->getPersonalityFn(), VMap)); - copyComdat(NF, F); RemoveNoopAddrSpaceCasts(NF);