[compiler-rt] r209281 - [sanitizer] fix linux_dirent for SANITIZER_X32; based on patch by H.J. Lu
Kostya Serebryany
kcc at google.com
Wed May 21 01:21:14 PDT 2014
Author: kcc
Date: Wed May 21 03:21:13 2014
New Revision: 209281
URL: http://llvm.org/viewvc/llvm-project?rev=209281&view=rev
Log:
[sanitizer] fix linux_dirent for SANITIZER_X32; based on patch by H.J. Lu
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc?rev=209281&r1=209280&r2=209281&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc Wed May 21 03:21:13 2014
@@ -454,8 +454,13 @@ void BlockingMutex::CheckLocked() {
// Note that getdents64 uses a different structure format. We only provide the
// 32-bit syscall here.
struct linux_dirent {
+#if SANITIZER_X32
+ u64 d_ino;
+ u64 d_off;
+#else
unsigned long d_ino;
unsigned long d_off;
+#endif
unsigned short d_reclen;
char d_name[256];
};
More information about the llvm-commits
mailing list