[compiler-rt] 82995e0 - [NFC][asan] Clang-format a code

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 20 19:06:06 PDT 2022


Author: Vitaly Buka
Date: 2022-07-20T18:57:37-07:00
New Revision: 82995e0e823f0dd2b72010812ccd15c65749a983

URL: https://github.com/llvm/llvm-project/commit/82995e0e823f0dd2b72010812ccd15c65749a983
DIFF: https://github.com/llvm/llvm-project/commit/82995e0e823f0dd2b72010812ccd15c65749a983.diff

LOG: [NFC][asan] Clang-format a code

Added: 
    

Modified: 
    compiler-rt/lib/asan/asan_interceptors.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/asan/asan_interceptors.cpp b/compiler-rt/lib/asan/asan_interceptors.cpp
index 7cd8343465af..78d23abaad63 100644
--- a/compiler-rt/lib/asan/asan_interceptors.cpp
+++ b/compiler-rt/lib/asan/asan_interceptors.cpp
@@ -266,15 +266,14 @@ INTERCEPTOR(int, swapcontext, struct ucontext_t *oucp,
   uptr stack, ssize;
   ReadContextStack(ucp, &stack, &ssize);
   ClearShadowMemoryForContextStack(stack, ssize);
-#if __has_attribute(__indirect_return__) && \
-    (defined(__x86_64__) || defined(__i386__))
+#    if __has_attribute(__indirect_return__) && \
+        (defined(__x86_64__) || defined(__i386__))
   int (*real_swapcontext)(struct ucontext_t *, struct ucontext_t *)
-    __attribute__((__indirect_return__))
-    = REAL(swapcontext);
+      __attribute__((__indirect_return__)) = REAL(swapcontext);
   int res = real_swapcontext(oucp, ucp);
-#else
+#    else
   int res = REAL(swapcontext)(oucp, ucp);
-#endif
+#    endif
   // swapcontext technically does not return, but program may swap context to
   // "oucp" later, that would look as if swapcontext() returned 0.
   // We need to clear shadow for ucp once again, as it may be in arbitrary


        


More information about the llvm-commits mailing list