[compiler-rt] r202122 - Enable UBSan on FreeBSD. Patch by Viktor Kutuzov.
Alexey Samsonov
samsonov at google.com
Tue Feb 25 00:29:36 PST 2014
Author: samsonov
Date: Tue Feb 25 02:29:36 2014
New Revision: 202122
URL: http://llvm.org/viewvc/llvm-project?rev=202122&view=rev
Log:
Enable UBSan on FreeBSD. Patch by Viktor Kutuzov.
Modified:
compiler-rt/trunk/lib/ubsan/ubsan_value.h
Modified: compiler-rt/trunk/lib/ubsan/ubsan_value.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/ubsan/ubsan_value.h?rev=202122&r1=202121&r2=202122&view=diff
==============================================================================
--- compiler-rt/trunk/lib/ubsan/ubsan_value.h (original)
+++ compiler-rt/trunk/lib/ubsan/ubsan_value.h Tue Feb 25 02:29:36 2014
@@ -14,9 +14,9 @@
#ifndef UBSAN_VALUE_H
#define UBSAN_VALUE_H
-// For now, only support linux and darwin. Other platforms should be easy to
-// add, and probably work as-is.
-#if !defined(__linux__) && !defined(__APPLE__)
+// For now, only support Linux, FreeBSD and Darwin. Other platforms should
+// be easy to add, and probably work as-is.
+#if !defined(__linux__) && !defined(__FreeBSD__) && !defined(__APPLE__)
#error "UBSan not supported for this platform!"
#endif
More information about the llvm-commits
mailing list