[compiler-rt] ff35c64 - [NFC][sanitizer] Return nullptr instead of 0
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 14 23:02:58 PDT 2023
Author: Vitaly Buka
Date: 2023-04-14T23:02:15-07:00
New Revision: ff35c64dc47692b79de2230cedf016fe5823bd67
URL: https://github.com/llvm/llvm-project/commit/ff35c64dc47692b79de2230cedf016fe5823bd67
DIFF: https://github.com/llvm/llvm-project/commit/ff35c64dc47692b79de2230cedf016fe5823bd67.diff
LOG: [NFC][sanitizer] Return nullptr instead of 0
Added:
Modified:
compiler-rt/lib/sanitizer_common/sanitizer_thread_registry.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_thread_registry.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_thread_registry.cpp
index 278f6defca95f..741e0731c4155 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_thread_registry.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_thread_registry.cpp
@@ -335,7 +335,7 @@ void ThreadRegistry::QuarantinePush(ThreadContextBase *tctx) {
ThreadContextBase *ThreadRegistry::QuarantinePop() {
if (invalid_threads_.size() == 0)
- return 0;
+ return nullptr;
ThreadContextBase *tctx = invalid_threads_.front();
invalid_threads_.pop_front();
return tctx;
More information about the llvm-commits
mailing list