[PATCH] D43676: [ubsan-minimal] Fix the ubsan_minimal debug build (COMPILER_RT_DEBUG=1) on macOS
Dan Liew via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 24 05:12:47 PST 2018
delcypher updated this revision to Diff 135793.
delcypher added a comment.
Remove names of unused arguments.
https://reviews.llvm.org/D43676
Files:
lib/ubsan_minimal/ubsan_minimal_handlers.cc
Index: lib/ubsan_minimal/ubsan_minimal_handlers.cc
===================================================================
--- lib/ubsan_minimal/ubsan_minimal_handlers.cc
+++ lib/ubsan_minimal/ubsan_minimal_handlers.cc
@@ -61,6 +61,19 @@
static void abort_with_message(const char *) { abort(); }
#endif
+#if SANITIZER_DEBUG
+namespace __sanitizer {
+// The DCHECK macro needs this symbol to be defined.
+void NORETURN CheckFailed(const char *file, int, const char *cond, u64, u64) {
+ message("Sanitizer CHECK failed: ");
+ message(file);
+ message(":?? : "); // FIXME: Show line number.
+ message(cond);
+ abort();
+}
+} // namespace __sanitizer
+#endif
+
#define INTERFACE extern "C" __attribute__((visibility("default")))
// FIXME: add caller pc to the error message (possibly as "ubsan: error-type
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43676.135793.patch
Type: text/x-patch
Size: 811 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180224/3838166a/attachment.bin>
More information about the llvm-commits
mailing list