diff options
| author | Alexey Samsonov <vonosmas@gmail.com> | 2014-06-13 22:48:40 +0000 |
|---|---|---|
| committer | Alexey Samsonov <vonosmas@gmail.com> | 2014-06-13 22:48:40 +0000 |
| commit | 3e61c523522d25f033d9663018ff7714d615e942 (patch) | |
| tree | fc550f8c6bcb47b3043d78845a2fc3fc9a6e80c2 | |
| parent | 821a21ea304601ca51a3785653ea8d227b49f6cf (diff) | |
| download | bcm5719-llvm-3e61c523522d25f033d9663018ff7714d615e942.tar.gz bcm5719-llvm-3e61c523522d25f033d9663018ff7714d615e942.zip | |
[UBSan] Respect runtime flag for colorizing reports
llvm-svn: 210950
| -rw-r--r-- | compiler-rt/lib/ubsan/ubsan_diag.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/ubsan/ubsan_diag.cc b/compiler-rt/lib/ubsan/ubsan_diag.cc index 7a1de218751..ba31f4caaae 100644 --- a/compiler-rt/lib/ubsan/ubsan_diag.cc +++ b/compiler-rt/lib/ubsan/ubsan_diag.cc @@ -49,7 +49,6 @@ Location __ubsan::getCallerLocation(uptr CallerLoc) { Location __ubsan::getFunctionLocation(uptr Loc, const char **FName) { if (!Loc) return Location(); - // FIXME: We may need to run initialization earlier. InitializeSanitizerCommon(); AddressInfo Info; @@ -265,7 +264,8 @@ static void renderMemorySnippet(const __sanitizer::AnsiColorDecorator &Decor, } Diag::~Diag() { - __sanitizer::AnsiColorDecorator Decor(PrintsToTty()); + InitializeSanitizerCommon(); + __sanitizer::AnsiColorDecorator Decor(ColorizeReports()); SpinMutexLock l(&CommonSanitizerReportMutex); Printf(Decor.Bold()); |

