diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2016-01-12 00:38:04 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2016-01-12 00:38:04 +0000 |
commit | 7087a51b131961527a419ecf17e757c24bb88929 (patch) | |
tree | ddbb66fb949af83c7faf779b40a6c3276d34ff27 /libcxx/include | |
parent | 902c75cd7b366a179b086f77652e5ac4ac38d5e0 (diff) | |
download | bcm5719-llvm-7087a51b131961527a419ecf17e757c24bb88929.tar.gz bcm5719-llvm-7087a51b131961527a419ecf17e757c24bb88929.zip |
Put the definition of _LIBCPP_DISABLE_UBSAN_UNSIGNED_INTEGER_CHECK in the right place.
llvm-svn: 257422
Diffstat (limited to 'libcxx/include')
-rw-r--r-- | libcxx/include/__config | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libcxx/include/__config b/libcxx/include/__config index b6f7bd3b34c..db5a832b6cd 100644 --- a/libcxx/include/__config +++ b/libcxx/include/__config @@ -433,6 +433,11 @@ namespace std { #define _LIBCPP_HAS_NO_ASAN #endif +// Allow for build-time disabling of unsigned integer sanitization +#ifndef _LIBCPP_DISABLE_UBSAN_UNSIGNED_INTEGER_CHECK +#define _LIBCPP_DISABLE_UBSAN_UNSIGNED_INTEGER_CHECK __attribute((no_sanitize("unsigned-integer-overflow"))) +#endif + #elif defined(__GNUC__) #define _ALIGNAS(x) __attribute__((__aligned__(x))) @@ -597,11 +602,6 @@ namespace std { #define _LIBCPP_HAS_NO_ASAN -// Allow for build-time disabling of unsigned integer sanitization -#ifndef _LIBCPP_DISABLE_UBSAN_UNSIGNED_INTEGER_CHECK -#define _LIBCPP_DISABLE_UBSAN_UNSIGNED_INTEGER_CHECK __attribute((no_sanitize("unsigned integer"))) -#endif - #endif // __clang__ || __GNUC__ || _MSC_VER || __IBMCPP__ #ifndef _LIBCPP_HAS_NO_NOEXCEPT |