[compiler-rt] 1039165 - [scudo][NFC] Clang-format c823cbf699
Alex Brachet via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 11 10:42:37 PDT 2022
Author: Alex Brachet
Date: 2022-07-11T17:41:37Z
New Revision: 1039165b9678175057c577b749478eeb40b41b7e
URL: https://github.com/llvm/llvm-project/commit/1039165b9678175057c577b749478eeb40b41b7e
DIFF: https://github.com/llvm/llvm-project/commit/1039165b9678175057c577b749478eeb40b41b7e.diff
LOG: [scudo][NFC] Clang-format c823cbf699
Ran `git clang-format` but didn't add the changed file...
Added:
Modified:
compiler-rt/lib/scudo/standalone/fuchsia.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/scudo/standalone/fuchsia.cpp b/compiler-rt/lib/scudo/standalone/fuchsia.cpp
index 9ec0f85e3486..4ce3b4ce6d18 100644
--- a/compiler-rt/lib/scudo/standalone/fuchsia.cpp
+++ b/compiler-rt/lib/scudo/standalone/fuchsia.cpp
@@ -57,7 +57,9 @@ void *map(void *Addr, uptr Size, const char *Name, uptr Flags,
if (Flags & MAP_NOACCESS)
return allocateVmar(Size, Data, AllowNoMem);
- const zx_handle_t Vmar = (Data && Data->Vmar != ZX_HANDLE_INVALID) ? Data->Vmar : _zx_vmar_root_self();
+ const zx_handle_t Vmar = (Data && Data->Vmar != ZX_HANDLE_INVALID)
+ ? Data->Vmar
+ : _zx_vmar_root_self();
zx_status_t Status;
zx_handle_t Vmo;
@@ -125,7 +127,9 @@ void unmap(void *Addr, uptr Size, uptr Flags, MapPlatformData *Data) {
CHECK_EQ(_zx_vmar_destroy(Vmar), ZX_OK);
CHECK_EQ(_zx_handle_close(Vmar), ZX_OK);
} else {
- const zx_handle_t Vmar = (Data && Data->Vmar != ZX_HANDLE_INVALID) ? Data->Vmar : _zx_vmar_root_self();
+ const zx_handle_t Vmar = (Data && Data->Vmar != ZX_HANDLE_INVALID)
+ ? Data->Vmar
+ : _zx_vmar_root_self();
const zx_status_t Status =
_zx_vmar_unmap(Vmar, reinterpret_cast<uintptr_t>(Addr), Size);
if (UNLIKELY(Status != ZX_OK))
More information about the llvm-commits
mailing list