Skip to content

Commit 6c2d506

Browse files
maleadtKristofferC
authored andcommitted
Don't explicitly remap the personality function.
LLVM does this already. (cherry picked from commit b815bb1)
1 parent 35c98b8 commit 6c2d506

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/llvm-remove-addrspaces.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -408,9 +408,6 @@ bool removeAddrspaces(Module &M, AddrspaceRemapFunction ASRemapper)
408408
}
409409
NF->setAttributes(Attrs);
410410

411-
if (F->hasPersonalityFn())
412-
NF->setPersonalityFn(MapValue(F->getPersonalityFn(), VMap));
413-
414411
copyComdat(NF, F);
415412

416413
RemoveNoopAddrSpaceCasts(NF);

0 commit comments

Comments
 (0)