forked from OSchip/llvm-project
[asan] Suppress some bogus -Winvalid-noreturn diagnostics.
llvm-svn: 163411
This commit is contained in:
parent
37a8563f36
commit
04ab17b0cd
|
@ -270,6 +270,9 @@ class ScopedInErrorReport {
|
|||
}
|
||||
};
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Winvalid-noreturn"
|
||||
|
||||
void ReportSIGSEGV(uptr pc, uptr sp, uptr bp, uptr addr) {
|
||||
ScopedInErrorReport in_report;
|
||||
Report("ERROR: AddressSanitizer crashed on unknown address %p"
|
||||
|
@ -326,6 +329,8 @@ void ReportStringFunctionMemoryRangesOverlap(
|
|||
DescribeAddress((uptr)offset2, length2);
|
||||
}
|
||||
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
// ----------------------- Mac-specific reports ----------------- {{{1
|
||||
|
||||
void WarnMacFreeUnallocated(
|
||||
|
@ -339,6 +344,9 @@ void WarnMacFreeUnallocated(
|
|||
DescribeHeapAddress(addr, 1);
|
||||
}
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Winvalid-noreturn"
|
||||
|
||||
void ReportMacMzReallocUnknown(
|
||||
uptr addr, uptr zone_ptr, const char *zone_name, StackTrace *stack) {
|
||||
ScopedInErrorReport in_report;
|
||||
|
@ -361,6 +369,8 @@ void ReportMacCfReallocUnknown(
|
|||
DescribeHeapAddress(addr, 1);
|
||||
}
|
||||
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
} // namespace __asan
|
||||
|
||||
// --------------------------- Interface --------------------- {{{1
|
||||
|
|
Loading…
Reference in New Issue