[llvm-commits] [compiler-rt] r165912 - /compiler-rt/trunk/lib/ubsan/ubsan_value.h
Richard Smith
richard-llvm at metafoo.co.uk
Sun Oct 14 16:28:55 PDT 2012
Author: rsmith
Date: Sun Oct 14 18:28:55 2012
New Revision: 165912
URL: http://llvm.org/viewvc/llvm-project?rev=165912&view=rev
Log:
Use a better test for __int128 support, which works on old GCC versions.
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=165912&r1=165911&r2=165912&view=diff
==============================================================================
--- compiler-rt/trunk/lib/ubsan/ubsan_value.h (original)
+++ compiler-rt/trunk/lib/ubsan/ubsan_value.h Sun Oct 14 18:28:55 2012
@@ -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
More information about the llvm-commits
mailing list