diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-01-10 11:17:55 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-01-10 11:17:55 +0000 |
commit | 99bf1d71c634ab0ed39d7614fd8f8f2c2201e111 (patch) | |
tree | 12dd716007c4bd09243c52e53b73e4610aed1613 /lib/msan/msan_report.cc | |
parent | e16adbc3b6307d8be592dffda8c3720702d39cfa (diff) |
[msan] Set program exit code in keep-going mode.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172057 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/msan/msan_report.cc')
-rw-r--r-- | lib/msan/msan_report.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/msan/msan_report.cc b/lib/msan/msan_report.cc index 27d20d3d8..872108999 100644 --- a/lib/msan/msan_report.cc +++ b/lib/msan/msan_report.cc @@ -89,4 +89,12 @@ void ReportExpectedUMRNotFound(StackTrace *stack) { StackTrace::PrintStack(stack->trace, stack->size, true, "", 0); } +void ReportAtExitStatistics() { + Decorator d; + Printf("%s", d.Warning()); + Printf("MemorySanitizer: %d warnings reported.\n", msan_report_count); + Printf("%s", d.End()); +} + + } // namespace msan |