[Hwasan] interceptor macro / extra comma removal
authorDavid Carlier <devnexen@gmail.com>
Thu, 20 Sep 2018 19:30:51 +0000 (19:30 +0000)
committerDavid Carlier <devnexen@gmail.com>
Thu, 20 Sep 2018 19:30:51 +0000 (19:30 +0000)
gcc being pedantic, removing the unnecessary comma.

Reviewers: eugenis, kcc

Reviewed By: eugenis

Differential Revision: https://reviews.llvm.org/D52305

llvm-svn: 342680

compiler-rt/lib/hwasan/hwasan_interceptors.cc

index 2df346d..9a0770f 100644 (file)
@@ -230,11 +230,11 @@ void * __sanitizer_malloc(uptr size) {
 }
 
 #if HWASAN_WITH_INTERCEPTORS
-#define INTERCEPTOR_ALIAS(RET, FN, ARGS...)                                 \
-  extern "C" SANITIZER_INTERFACE_ATTRIBUTE RET WRAP(FN)(ARGS)               \
-      ALIAS("__sanitizer_" #FN);                                            \
-  extern "C" SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE RET FN( \
-      ARGS) ALIAS("__sanitizer_" #FN);
+#define INTERCEPTOR_ALIAS(RET, FN, ARGS...)                                  \
+  extern "C" SANITIZER_INTERFACE_ATTRIBUTE RET WRAP(FN)(ARGS)                \
+      ALIAS("__sanitizer_" #FN);                                             \
+  extern "C" SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE RET FN(  \
+      ARGS) ALIAS("__sanitizer_" #FN)
 
 INTERCEPTOR_ALIAS(int, posix_memalign, void **memptr, SIZE_T alignment,
                   SIZE_T size);