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.
  • Loading branch information
maleadt committed May 2, 2023
1 parent f77ad0a commit b815bb1
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 b815bb1

Please sign in to comment.