[llvm-commits] [compiler-rt] r168857 - /compiler-rt/trunk/lib/ubsan/ubsan_value.h

Richard Smith richard-llvm at metafoo.co.uk
Wed Nov 28 21:59:30 PST 2012


Author: rsmith
Date: Wed Nov 28 23:59:30 2012
New Revision: 168857

URL: http://llvm.org/viewvc/llvm-project?rev=168857&view=rev
Log:
ubsan: Don't assume that Clang provides __int128 unless it advertises that it does.

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=168857&r1=168856&r2=168857&view=diff
==============================================================================
--- compiler-rt/trunk/lib/ubsan/ubsan_value.h (original)
+++ compiler-rt/trunk/lib/ubsan/ubsan_value.h Wed Nov 28 23:59:30 2012
@@ -23,7 +23,7 @@
 #include "sanitizer_common/sanitizer_common.h"
 
 // FIXME: Move this out to a config header.
-#if defined(__clang__) || __SIZEOF_INT128__
+#if __SIZEOF_INT128__
 typedef __int128 s128;
 typedef unsigned __int128 u128;
 #define HAVE_INT128_T 1





More information about the llvm-commits mailing list