[compiler-rt] r175140 - [asan] fix x32 build (H.J. Lu)
Kostya Serebryany
kcc at google.com
Thu Feb 14 00:05:55 PST 2013
Author: kcc
Date: Thu Feb 14 02:05:55 2013
New Revision: 175140
URL: http://llvm.org/viewvc/llvm-project?rev=175140&view=rev
Log:
[asan] fix x32 build (H.J. Lu)
Modified:
compiler-rt/trunk/lib/interception/interception.h
Modified: compiler-rt/trunk/lib/interception/interception.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/interception/interception.h?rev=175140&r1=175139&r2=175140&view=diff
==============================================================================
--- compiler-rt/trunk/lib/interception/interception.h (original)
+++ compiler-rt/trunk/lib/interception/interception.h Thu Feb 14 02:05:55 2013
@@ -30,8 +30,8 @@ typedef __sanitizer::s64 INTMAX_T;
// WARNING: OFF_T may be different from OS type off_t, depending on the value of
// _FILE_OFFSET_BITS. This definition of OFF_T matches the ABI of system calls
// like pread and mmap, as opposed to pread64 and mmap64.
-// Mac is special.
-#ifdef __APPLE__
+// Mac and Linux/x86-64 are special.
+#if defined(__APPLE__) || (defined(__linux__) && defined(__x86_64__))
typedef __sanitizer::u64 OFF_T;
#else
typedef __sanitizer::uptr OFF_T;
More information about the llvm-commits
mailing list