This is an archive of the discontinued LLVM Phabricator instance.

[ubsan] Save a ptrtoint when emitting alignment checks
ClosedPublic

Authored by vsk on Sep 6 2017, 5:24 PM.

Details

Reviewers
arphaman
jroelofs
Summary

The alignment check emits a ptrtoint instruction which can be reused in
the call to the diagnostic handler.

Diff Detail

Event Timeline

vsk created this revision.Sep 6 2017, 5:24 PM
arphaman accepted this revision.Sep 18 2017, 3:51 AM

Nice, LGTM

This revision is now accepted and ready to land.Sep 18 2017, 3:51 AM
vsk closed this revision.Oct 3 2017, 11:06 AM

Landed as r314749