This is an archive of the discontinued LLVM Phabricator instance.

[Sanitizer] Reland of "Cleanup of INTERCEPT_FUNCTION macro"
AbandonedPublic

Authored by yln on Apr 30 2019, 3:06 PM.

Details

Reviewers
None
Summary

On Linux both version of the INTERCEPT_FUNCTION macro now return true
when interception was successful. Cleanup some usages.

Also note that &(func) == &WRAP(func) is a link-time property, but we
do a runtime check.

Tested on Linux and macOS.

Previously reverted in: 5642c3feb03d020dc06a62e3dc54f3206a97a391

Event Timeline

yln created this revision.Apr 30 2019, 3:06 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptApr 30 2019, 3:06 PM
Herald added subscribers: llvm-commits, Restricted Project, kubamracek. · View Herald Transcript
yln edited the summary of this revision. (Show Details)Apr 30 2019, 3:07 PM
yln updated this revision to Diff 197457.Apr 30 2019, 3:09 PM

Forgot to take address of wrapper.

yln abandoned this revision.Apr 30 2019, 5:48 PM