sanitizer_common: allow COMMON_INTERCEPTOR_ENTER to use labels
authorDmitry Vyukov <dvyukov@google.com>
Sun, 11 Jul 2021 12:25:40 +0000 (14:25 +0200)
committerDmitry Vyukov <dvyukov@google.com>
Mon, 12 Jul 2021 13:54:37 +0000 (15:54 +0200)
commitb3bd8850174fb7e5ef03768ba05205701ffc10b2
treeefa307afa1b80cc7e2900b2d03bf141478551b9e
parent7177c5951ab4fefcd8986a7808d895ffeeace037
sanitizer_common: allow COMMON_INTERCEPTOR_ENTER to use labels

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.

Reviewed By: melver

Differential Revision: https://reviews.llvm.org/D105774
compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc