[PATCH] D15287: [tsan] Fix memcmp interceptor to correctly use COMMON_INTERCEPTOR_NOTHING_IS_INITIALIZED
Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 8 06:51:32 PST 2015
This revision was automatically updated to reflect the committed changes.
Closed by commit rL255019: [tsan] Fix memcmp interceptor to correctly useā¦ (authored by kuba.brecka).
Changed prior to commit:
http://reviews.llvm.org/D15287?vs=42060&id=42173#toc
Repository:
rL LLVM
http://reviews.llvm.org/D15287
Files:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc
Index: compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc
===================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc
@@ -403,10 +403,10 @@
const void *s1, const void *s2, uptr n)
INTERCEPTOR(int, memcmp, const void *a1, const void *a2, uptr size) {
- void *ctx;
- COMMON_INTERCEPTOR_ENTER(ctx, memcmp, a1, a2, size);
if (COMMON_INTERCEPTOR_NOTHING_IS_INITIALIZED)
return internal_memcmp(a1, a2, size);
+ void *ctx;
+ COMMON_INTERCEPTOR_ENTER(ctx, memcmp, a1, a2, size);
CALL_WEAK_INTERCEPTOR_HOOK(__sanitizer_weak_hook_memcmp, GET_CALLER_PC(), a1,
a2, size);
if (common_flags()->intercept_memcmp) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15287.42173.patch
Type: text/x-patch
Size: 866 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151208/d66f28dd/attachment.bin>
More information about the llvm-commits
mailing list