Skip to content

Commit

Permalink
Don't explicitly remap the personality function.
Browse files Browse the repository at this point in the history
LLVM does this already.

(cherry picked from commit b815bb1)
  • Loading branch information
maleadt authored and KristofferC committed May 8, 2023
1 parent 35c98b8 commit 6c2d506
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/llvm-remove-addrspaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6c2d506

Please sign in to comment.