This is an archive of the discontinued LLVM Phabricator instance.

sanitizer_common: allow COMMON_INTERCEPTOR_ENTER to use labels
ClosedPublic

Authored by dvyukov on Jul 11 2021, 5:27 AM.

Details

Summary

The memcpy interceptor is the only one that uses COMMON_INTERCEPTOR_ENTER
more than once in a single function. This does not allow COMMON_INTERCEPTOR_ENTER
to use labels, because they are global for the whole function (not block scoped).
Don't include COMMON_INTERCEPTOR_ENTER code twice.

Diff Detail

Event Timeline

dvyukov requested review of this revision.Jul 11 2021, 5:27 AM
dvyukov created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJul 11 2021, 5:27 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
melver accepted this revision.Jul 12 2021, 2:53 AM
This revision is now accepted and ready to land.Jul 12 2021, 2:53 AM
This revision was landed with ongoing or failed builds.Jul 12 2021, 6:54 AM
This revision was automatically updated to reflect the committed changes.