[NFC] Clang-format D129645
authorVitaly Buka <vitalybuka@google.com>
Thu, 14 Jul 2022 17:26:45 +0000 (10:26 -0700)
committerVitaly Buka <vitalybuka@google.com>
Thu, 14 Jul 2022 17:27:04 +0000 (10:27 -0700)
compiler-rt/lib/hwasan/hwasan_linux.cpp
compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp

index dcab473..2d7a445 100644 (file)
@@ -114,19 +114,20 @@ void InitializeOsSupport() {
 #  define PR_SET_TAGGED_ADDR_CTRL 55
 #  define PR_GET_TAGGED_ADDR_CTRL 56
 #  define PR_TAGGED_ADDR_ENABLE (1UL << 0)
-#  define ARCH_GET_UNTAG_MASK     0x4001
+#  define ARCH_GET_UNTAG_MASK 0x4001
 #  define ARCH_ENABLE_TAGGED_ADDR 0x4002
   // Check we're running on a kernel that can use the tagged address ABI.
   int local_errno = 0;
   bool has_abi;
 #  if defined(__x86_64__)
   has_abi = (internal_iserror(internal_arch_prctl(ARCH_GET_UNTAG_MASK, 0),
-                       &local_errno) &&
-      local_errno == EINVAL);
+                              &local_errno) &&
+             local_errno == EINVAL);
 #  else
-  has_abi = (internal_iserror(internal_prctl(PR_GET_TAGGED_ADDR_CTRL, 0, 0, 0, 0),
-                       &local_errno) &&
-      local_errno == EINVAL);
+  has_abi =
+      (internal_iserror(internal_prctl(PR_GET_TAGGED_ADDR_CTRL, 0, 0, 0, 0),
+                        &local_errno) &&
+       local_errno == EINVAL);
 #  endif
   if (has_abi) {
 #  if SANITIZER_ANDROID || defined(HWASAN_ALIASING_MODE)
index be37fd7..9bddd7d 100644 (file)
@@ -763,14 +763,14 @@ uptr internal_lseek(fd_t fd, OFF_T offset, int whence) {
 uptr internal_prctl(int option, uptr arg2, uptr arg3, uptr arg4, uptr arg5) {
   return internal_syscall(SYSCALL(prctl), option, arg2, arg3, arg4, arg5);
 }
-# if defined(__x86_64__)
-#include <asm/unistd_64.h>
+#      if defined(__x86_64__)
+#        include <asm/unistd_64.h>
 // Currently internal_arch_prctl() is only needed on x86_64.
 uptr internal_arch_prctl(int option, uptr arg2) {
   return internal_syscall(__NR_arch_prctl, option, arg2);
 }
-# endif
-#endif
+#      endif
+#    endif
 
 uptr internal_sigaltstack(const void *ss, void *oss) {
   return internal_syscall(SYSCALL(sigaltstack), (uptr)ss, (uptr)oss);