summaryrefslogtreecommitdiffstats
path: root/compiler-rt
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2012-09-07 19:57:20 +0000
committerDaniel Dunbar <daniel@zuster.org>2012-09-07 19:57:20 +0000
commit04ab17b0cd736a10ac0eb79efdadeb6e77696b9f (patch)
tree18c05ef07e6684cb51bb027c81363203524a5f9c /compiler-rt
parent37a8563f36155f9e93961d1caa64bfb67b94e1ae (diff)
downloadbcm5719-llvm-04ab17b0cd736a10ac0eb79efdadeb6e77696b9f.tar.gz
bcm5719-llvm-04ab17b0cd736a10ac0eb79efdadeb6e77696b9f.zip
[asan] Suppress some bogus -Winvalid-noreturn diagnostics.
llvm-svn: 163411
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/lib/asan/asan_report.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/compiler-rt/lib/asan/asan_report.cc b/compiler-rt/lib/asan/asan_report.cc
index 2a00c4e691c..5138820a2e7 100644
--- a/compiler-rt/lib/asan/asan_report.cc
+++ b/compiler-rt/lib/asan/asan_report.cc
@@ -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
OpenPOWER on IntegriCloud