[compiler-rt] 20941cd - [NFC][sanitizer] Return nullptr instead of 0
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 9 13:59:35 PDT 2023
Author: Vitaly Buka
Date: 2023-09-09T13:58:10-07:00
New Revision: 20941cdcd19766edc7676771bb5efc9191aa2532
URL: https://github.com/llvm/llvm-project/commit/20941cdcd19766edc7676771bb5efc9191aa2532
DIFF: https://github.com/llvm/llvm-project/commit/20941cdcd19766edc7676771bb5efc9191aa2532.diff
LOG: [NFC][sanitizer] Return nullptr instead of 0
Added:
Modified:
compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_libbacktrace.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_libbacktrace.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_libbacktrace.cpp
index cc02c77bccdc91d..d78dab93487f1b6 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_libbacktrace.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_libbacktrace.cpp
@@ -199,7 +199,7 @@ static char *DemangleAlloc(const char *name, bool always_alloc) {
#endif
if (always_alloc)
return internal_strdup(name);
- return 0;
+ return nullptr;
}
const char *LibbacktraceSymbolizer::Demangle(const char *name) {
More information about the llvm-commits
mailing list