diff options
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_stacktrace_libcdep.cc | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_stacktrace_libcdep.cc b/compiler-rt/lib/sanitizer_common/sanitizer_stacktrace_libcdep.cc index 36c98d057bd..747a4a70172 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_stacktrace_libcdep.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_stacktrace_libcdep.cc @@ -43,7 +43,8 @@ void StackTrace::Print() const {        if (dedup_frames-- > 0) {          if (dedup_token.length())            dedup_token.append("--"); -        dedup_token.append(cur->info.function); +        if (cur->info.function != nullptr) +          dedup_token.append(cur->info.function);        }      }      frames->ClearAll();  | 

