[llvm-commits] [compiler-rt] r163411 - /compiler-rt/trunk/lib/asan/asan_report.cc
Daniel Dunbar
daniel at zuster.org
Fri Sep 7 12:57:20 PDT 2012
Author: ddunbar
Date: Fri Sep 7 14:57:20 2012
New Revision: 163411
URL: http://llvm.org/viewvc/llvm-project?rev=163411&view=rev
Log:
[asan] Suppress some bogus -Winvalid-noreturn diagnostics.
Modified:
compiler-rt/trunk/lib/asan/asan_report.cc
Modified: compiler-rt/trunk/lib/asan/asan_report.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_report.cc?rev=163411&r1=163410&r2=163411&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_report.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_report.cc Fri Sep 7 14:57:20 2012
@@ -270,6 +270,9 @@
}
};
+#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 @@
DescribeAddress((uptr)offset2, length2);
}
+#pragma clang diagnostic pop
+
// ----------------------- Mac-specific reports ----------------- {{{1
void WarnMacFreeUnallocated(
@@ -339,6 +344,9 @@
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 @@
DescribeHeapAddress(addr, 1);
}
+#pragma clang diagnostic pop
+
} // namespace __asan
// --------------------------- Interface --------------------- {{{1
More information about the llvm-commits
mailing list