Skip to content

Commit 71918b1

Browse files
committed
incorporate clang-format feedback
1 parent 7e7dbfb commit 71918b1

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

compiler-rt/lib/asan/asan_flags.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,8 @@ void InitializeFlags() {
244244
// TODO: Update other globals and data structures that may need to change
245245
// after initialization due to new flags potentially being set changing after
246246
// `__asan_default_options` is registered.
247-
// See GH issue 'https://github.com/llvm/llvm-project/issues/117925' for details.
247+
// See GH issue 'https://github.com/llvm/llvm-project/issues/117925' for
248+
// details.
248249
SetAllocatorMayReturnNull(common_flags()->allocator_may_return_null);
249250
});
250251

compiler-rt/lib/sanitizer_common/sanitizer_allocator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ static void NORETURN ReportInternalAllocatorOutOfMemory(uptr requested_size) {
8686
void *InternalAlloc(uptr size, InternalAllocatorCache *cache, uptr alignment) {
8787
void *p = RawInternalAlloc(size, cache, alignment);
8888
if (UNLIKELY(!p)) {
89-
if (AllocatorMayReturnNull()){
89+
if (AllocatorMayReturnNull()) {
9090
return nullptr;
9191
}
9292
ReportInternalAllocatorOutOfMemory(size);

compiler-rt/lib/sanitizer_common/sanitizer_win.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,9 @@ static void *ReturnNullptrOnOOMOrDie(uptr size, const char *mem_type,
177177
// This does not seem to be officially documented, but is corroborated here:
178178
// https://stackoverflow.com/questions/45833674/why-does-virtualalloc-fail-for-lpaddress-greater-than-0x6ffffffffff
179179

180-
// Note - It's possible that 'ERROR_COMMITMENT_LIMIT' needs to be handled here as well.
181-
// It is currently not handled due to the lack of a reproducer that induces the error code.
180+
// Note - It's possible that 'ERROR_COMMITMENT_LIMIT' needs to be handled here
181+
// as well. It is currently not handled due to the lack of a reproducer that
182+
// induces the error code.
182183
if (last_error == ERROR_NOT_ENOUGH_MEMORY ||
183184
last_error == ERROR_INVALID_PARAMETER)
184185
return nullptr;

0 commit comments

Comments
 (0)