diff options
author | Sergey Matveev <earthdok@google.com> | 2013-05-06 13:15:14 +0000 |
---|---|---|
committer | Sergey Matveev <earthdok@google.com> | 2013-05-06 13:15:14 +0000 |
commit | 0b4bf4d72be10ba114c9b1f73aca45acd0e44ddc (patch) | |
tree | 00fda71c448e053cc4a40bc75abf82272e6cefd0 /lib/msan/msan_report.cc | |
parent | ed20ebe35c64b8c7043447f6a48b0e5adc89aded (diff) |
[msan] Common flags in MSan.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181194 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/msan/msan_report.cc')
-rw-r--r-- | lib/msan/msan_report.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/msan/msan_report.cc b/lib/msan/msan_report.cc index 5611a5f7e..734fc96fe 100644 --- a/lib/msan/msan_report.cc +++ b/lib/msan/msan_report.cc @@ -14,6 +14,7 @@ #include "msan.h" #include "sanitizer_common/sanitizer_common.h" +#include "sanitizer_common/sanitizer_flags.h" #include "sanitizer_common/sanitizer_mutex.h" #include "sanitizer_common/sanitizer_report_decorator.h" #include "sanitizer_common/sanitizer_stackdepot.h" @@ -44,7 +45,8 @@ class Decorator: private __sanitizer::AnsiColorDecorator { static void PrintStack(const uptr *trace, uptr size) { SymbolizerScope sym_scope; - StackTrace::PrintStack(trace, size, true, flags()->strip_path_prefix, 0); + StackTrace::PrintStack(trace, size, true, + common_flags()->strip_path_prefix, 0); } static void DescribeOrigin(u32 origin) { @@ -80,7 +82,8 @@ static void ReportSummary(const char *error_type, StackTrace *stack) { SymbolizeCode(pc, &ai, 1); } ReportErrorSummary(error_type, - StripPathPrefix(ai.file, flags()->strip_path_prefix), + StripPathPrefix(ai.file, + common_flags()->strip_path_prefix), ai.line, ai.function); } |