[compiler-rt] acecb5d - [NFC][HWASAN] Reformat InitializeInterceptors
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Sun May 7 16:21:27 PDT 2023
Author: Vitaly Buka
Date: 2023-05-07T16:18:48-07:00
New Revision: acecb5dc705922a4c2eb73b218dec9cd7f97b880
URL: https://github.com/llvm/llvm-project/commit/acecb5dc705922a4c2eb73b218dec9cd7f97b880
DIFF: https://github.com/llvm/llvm-project/commit/acecb5dc705922a4c2eb73b218dec9cd7f97b880.diff
LOG: [NFC][HWASAN] Reformat InitializeInterceptors
Added:
Modified:
compiler-rt/lib/hwasan/hwasan_interceptors.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/hwasan/hwasan_interceptors.cpp b/compiler-rt/lib/hwasan/hwasan_interceptors.cpp
index 67edba40b5b90..299cf371e32a5 100644
--- a/compiler-rt/lib/hwasan/hwasan_interceptors.cpp
+++ b/compiler-rt/lib/hwasan/hwasan_interceptors.cpp
@@ -262,13 +262,13 @@ void InitializeInterceptors() {
static int inited = 0;
CHECK_EQ(inited, 0);
-#if HWASAN_WITH_INTERCEPTORS
-#if defined(__linux__)
+# if HWASAN_WITH_INTERCEPTORS
+# if defined(__linux__)
INTERCEPT_FUNCTION(__libc_longjmp);
INTERCEPT_FUNCTION(longjmp);
INTERCEPT_FUNCTION(siglongjmp);
INTERCEPT_FUNCTION(vfork);
-#endif // __linux__
+# endif // __linux__
INTERCEPT_FUNCTION(pthread_create);
INTERCEPT_FUNCTION(pthread_join);
# endif
More information about the llvm-commits
mailing list