This is an archive of the discontinued LLVM Phabricator instance.

[PM] Wire up support for the bounds checking sanitizer with the new PM.
ClosedPublic

Authored by chandlerc on Oct 19 2017, 2:19 AM.

Details

Summary

Not much interesting here. Mostly wiring things together.

One thing worth noting is that the approach is substantially different
from the old PM. Here, the -O0 case works fundamentally differently in
that we just directly build the pipeline without any callbacks or other
cruft. In some ways, this is nice and clean. However, I don't like that
it causes the sanitizers to be enabled with different changes at
different times. =/ Suggestions for a better way to do this are welcome.

Depends on D39084.

Diff Detail

Repository
rL LLVM

Event Timeline

chandlerc created this revision.Oct 19 2017, 2:19 AM
echristo accepted this revision.Nov 13 2017, 3:40 PM
echristo added a subscriber: echristo.

LGTM.

Thanks!

-eric

This revision is now accepted and ready to land.Nov 13 2017, 3:40 PM
davide accepted this revision.Nov 13 2017, 3:55 PM
davide added a subscriber: davide.

This looks fine once the other revision goes in.

This revision was automatically updated to reflect the committed changes.