Use a better test for __int128 support, which works on old GCC versions.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 14 Oct 2012 23:28:55 +0000 (23:28 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 14 Oct 2012 23:28:55 +0000 (23:28 +0000)
llvm-svn: 165912

compiler-rt/lib/ubsan/ubsan_value.h

index e92b2d6..a855791 100644 (file)
@@ -23,7 +23,7 @@
 #include "sanitizer_common/sanitizer_common.h"
 
 // FIXME: Move this out to a config header.
-#if defined(__clang__) || _LP64
+#if defined(__clang__) || __SIZEOF_INT128__
 typedef __int128 s128;
 typedef unsigned __int128 u128;
 #define HAVE_INT128_T 1