[PATCH] D39151: [tsan] Fix warnings in tsan_interceptors.cc from expansion of variadic macros

Alex Langford via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 24 17:58:30 PDT 2017


xiaobai updated this revision to Diff 120160.
xiaobai added a comment.

Pass a fake argument instead of crafting complex variadic macros


https://reviews.llvm.org/D39151

Files:
  lib/tsan/rtl/tsan_interceptors.cc


Index: lib/tsan/rtl/tsan_interceptors.cc
===================================================================
--- lib/tsan/rtl/tsan_interceptors.cc
+++ lib/tsan/rtl/tsan_interceptors.cc
@@ -371,9 +371,9 @@
   return res;
 }
 
-TSAN_INTERCEPTOR(int, pause) {
-  SCOPED_TSAN_INTERCEPTOR(pause);
-  return BLOCK_REAL(pause)();
+TSAN_INTERCEPTOR(int, pause, int fake) {
+  SCOPED_TSAN_INTERCEPTOR(pause, fake);
+  return BLOCK_REAL(pause)(fake);
 }
 
 // The sole reason tsan wraps atexit callbacks is to establish synchronization


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39151.120160.patch
Type: text/x-patch
Size: 526 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171025/b3c24c5d/attachment.bin>


More information about the llvm-commits mailing list