From d402fb02b92a235a2654727908f5211185c538f9 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Mon, 11 Oct 2021 18:33:48 -0700 Subject: [PATCH] [NFC][sanitizer] Clang-format a line Depends on D111608. Reviewed By: dvyukov Differential Revision: https://reviews.llvm.org/D111609 --- compiler-rt/lib/sanitizer_common/sanitizer_persistent_allocator.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_persistent_allocator.h b/compiler-rt/lib/sanitizer_common/sanitizer_persistent_allocator.h index b7afacc..be7c345 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_persistent_allocator.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_persistent_allocator.h @@ -42,7 +42,8 @@ inline T *PersistentAllocator::tryAlloc(uptr count) { uptr cmp = atomic_load(®ion_pos, memory_order_acquire); uptr end = atomic_load(®ion_end, memory_order_acquire); uptr size = count * sizeof(T); - if (cmp == 0 || cmp + size > end) return nullptr; + if (cmp == 0 || cmp + size > end) + return nullptr; if (atomic_compare_exchange_weak(®ion_pos, &cmp, cmp + size, memory_order_acquire)) return reinterpret_cast(cmp); -- 2.7.4