tsan: remove real func check from interceptors
authorDmitry Vyukov <dvyukov@google.com>
Tue, 26 Oct 2021 14:31:46 +0000 (16:31 +0200)
committerDmitry Vyukov <dvyukov@google.com>
Wed, 27 Oct 2021 06:47:27 +0000 (08:47 +0200)
commitc80604f7a30a5eee5421a4d9786ef135b03c25a8
tree6da3138b7051bdb50ede7f9eb56bbc11ff39d573
parent6af3e87d2d8d8964be6cd35d48b2dbf35c47015b
tsan: remove real func check from interceptors

If the real function is not intercepted,
we are going to crash one way or another.
The question is just in the failure mode:
error message vs NULL deref. But the message
costs us a check in every interceptor and
they are not observed to be failing in real life
for a long time, also other sanitizers don't
have this check as well (also crash on
NULL deref if that happens).
Remove the check from non-debug mode.

Reviewed By: melver

Differential Revision: https://reviews.llvm.org/D112540
compiler-rt/lib/tsan/rtl/tsan_interceptors.h