forked from OSchip/llvm-project
UBSan: print 'undefined-behavior' instead of 'runtime-error' in report summary
llvm-svn: 218264
This commit is contained in:
parent
7939d7229d
commit
7dd95610e5
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue