This is an archive of the discontinued LLVM Phabricator instance.

Disable CFI checks in std::addressof.
ClosedPublic

Authored by eugenis on Mar 11 2016, 3:45 PM.

Details

Reviewers
EricWF
Summary

std::addressof may be used on a storage of an object before the start
of its lifetime (see std::allocate_shared for example). CFI flags the
C-style cast as invalid in that case.

Diff Detail

Repository
rL LLVM

Event Timeline

eugenis updated this revision to Diff 50495.Mar 11 2016, 3:45 PM
eugenis retitled this revision from to Disable CFI checks in std::addressof..
eugenis updated this object.
eugenis added a reviewer: EricWF.
eugenis set the repository for this revision to rL LLVM.
eugenis added a subscriber: cfe-commits.
EricWF accepted this revision.Mar 11 2016, 3:46 PM
EricWF edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Mar 11 2016, 3:46 PM
eugenis closed this revision.Mar 11 2016, 4:13 PM

r263310
Thanks!