This is an archive of the discontinued LLVM Phabricator instance.

[sanitizer] Move interceptor initialization check into real_clock_gettime
ClosedPublic

Authored by vitalybuka on Oct 26 2018, 1:59 PM.

Diff Detail

Event Timeline

vitalybuka created this revision.Oct 26 2018, 1:59 PM

@kubamracek Is this going to work for D53528 ?

I'll try the patch and get back to you. I'm not sure if COMMON_INTERCEPTOR_NOTHING_IS_INITIALIZED is the right thing to check here. Checking &REAL(clock_gettime) == nullptr would work.

kubamracek accepted this revision.Oct 29 2018, 11:59 AM

Okay, yup, this works. Thanks!

This revision is now accepted and ready to land.Oct 29 2018, 11:59 AM
This revision was automatically updated to reflect the committed changes.
Herald added a subscriber: Restricted Project. · View Herald TranscriptOct 29 2018, 6:23 PM