diff options
| author | Alexey Samsonov <vonosmas@gmail.com> | 2014-09-22 19:39:46 +0000 |
|---|---|---|
| committer | Alexey Samsonov <vonosmas@gmail.com> | 2014-09-22 19:39:46 +0000 |
| commit | 7dd95610e5b5db178a77ae29e2bee2e26a511eb1 (patch) | |
| tree | 5e3267b5a20b3795f4ff9c02e3346e9569d52476 | |
| parent | 7939d7229d374b31c6237718d69c3c0bfa0846a8 (diff) | |
| download | bcm5719-llvm-7dd95610e5b5db178a77ae29e2bee2e26a511eb1.tar.gz bcm5719-llvm-7dd95610e5b5db178a77ae29e2bee2e26a511eb1.zip | |
UBSan: print 'undefined-behavior' instead of 'runtime-error' in report summary
llvm-svn: 218264
| -rw-r--r-- | compiler-rt/lib/ubsan/ubsan_diag.cc | 6 | ||||
| -rw-r--r-- | compiler-rt/test/ubsan/TestCases/Integer/summary.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/compiler-rt/lib/ubsan/ubsan_diag.cc b/compiler-rt/lib/ubsan/ubsan_diag.cc index 33babaf3da8..fa235216d03 100644 --- a/compiler-rt/lib/ubsan/ubsan_diag.cc +++ b/compiler-rt/lib/ubsan/ubsan_diag.cc @@ -46,12 +46,12 @@ static void MaybeReportErrorSummary(Location Loc) { if (Loc.isSourceLocation()) { SourceLocation SLoc = Loc.getSourceLocation(); if (!SLoc.isInvalid()) { - ReportErrorSummary("runtime-error", SLoc.getFilename(), SLoc.getLine(), - ""); + ReportErrorSummary("undefined-behavior", SLoc.getFilename(), + SLoc.getLine(), ""); return; } } - ReportErrorSummary("runtime-error"); + ReportErrorSummary("undefined-behavior"); } namespace { diff --git a/compiler-rt/test/ubsan/TestCases/Integer/summary.cpp b/compiler-rt/test/ubsan/TestCases/Integer/summary.cpp index d6fecd2abd3..6e9aec63ca7 100644 --- a/compiler-rt/test/ubsan/TestCases/Integer/summary.cpp +++ b/compiler-rt/test/ubsan/TestCases/Integer/summary.cpp @@ -5,6 +5,6 @@ int main() { (void)(uint64_t(10000000000000000000ull) + uint64_t(9000000000000000000ull)); - // CHECK: SUMMARY: AddressSanitizer: runtime-error {{.*}}summary.cpp:[[@LINE-1]] + // CHECK: SUMMARY: AddressSanitizer: undefined-behavior {{.*}}summary.cpp:[[@LINE-1]] return 0; } |

