Page MenuHomePhabricator

[Function] Properly remove use when clearing personality

Authored by loladiro on Dec 23 2015, 9:58 AM.



We need to actually remove the use of the personality function,
otherwise we can run into trouble if we want to e.g. delete
the personality function because ther's no way to get rid of
its uses. Do this by resetting to ConstantPointerNull value
that the operands are set to when first allocated.

Diff Detail


Event Timeline

loladiro updated this revision to Diff 43545.Dec 23 2015, 9:58 AM
loladiro retitled this revision from to [Function] Properly remove use when clearing personality.
loladiro updated this object.
loladiro added reviewers: vsk, dexonsmith.
loladiro added a subscriber: llvm-commits.
vsk accepted this revision.Dec 23 2015, 10:16 AM
vsk edited edge metadata.

Thanks for the test, lgtm also.

This revision is now accepted and ready to land.Dec 23 2015, 10:16 AM
This revision was automatically updated to reflect the committed changes.