summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2017-09-22 18:50:18 +0000
committerVitaly Buka <vitalybuka@google.com>2017-09-22 18:50:18 +0000
commit1c06f9a127bb92e150e31806541445f0a97ad533 (patch)
tree52c977e8ca6b8fa7f954347573a6a4446325a0bf
parent0e68358cbf6516a743b431d0f52eae59ec0fc137 (diff)
downloadbcm5719-llvm-1c06f9a127bb92e150e31806541445f0a97ad533.tar.gz
bcm5719-llvm-1c06f9a127bb92e150e31806541445f0a97ad533.zip
[sanitizer] Replace AddressSanitizer with correct tool name
llvm-svn: 314015
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_common.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common.cc b/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
index c31f4e3a631..e5ae1a9f15f 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
@@ -368,8 +368,9 @@ ScopedErrorReportLock::ScopedErrorReportLock(u32 current_tid) {
// Can't use Report() here because of potential deadlocks in nested
// signal handlers.
- static const char msg[] =
- "AddressSanitizer: nested bug in the same thread, aborting.\n";
+ CatastrophicErrorWrite(SanitizerToolName,
+ internal_strlen(SanitizerToolName));
+ static const char msg[] = ": nested bug in the same thread, aborting.\n";
CatastrophicErrorWrite(msg, sizeof(msg) - 1);
internal__exit(common_flags()->exitcode);
OpenPOWER on IntegriCloud