Fix warning on linux
authorChris Lattner <sabre@nondot.org>
Thu, 27 Jul 2006 00:04:14 +0000 (00:04 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 27 Jul 2006 00:04:14 +0000 (00:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29314 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/JIT/Intercept.cpp

index 490861d66c418a75ad6091a4030d4990258001b5..43298d6349f15bff967caff02cc3e6437635c1eb 100644 (file)
@@ -52,14 +52,14 @@ static void runAtExitHandlers() {
 #include <sys/stat.h>
 #endif
 void *FunctionPointers[] = {
-  (void *) stat,
-  (void *) fstat,
-  (void *) lstat,
-  (void *) stat64,
-  (void *) fstat64,
-  (void *) lstat64,
-  (void *) atexit,
-  (void *) mknod
+  (void *)(intptr_t) stat,
+  (void *)(intptr_t) fstat,
+  (void *)(intptr_t) lstat,
+  (void *)(intptr_t) stat64,
+  (void *)(intptr_t) fstat64,
+  (void *)(intptr_t) lstat64,
+  (void *)(intptr_t) atexit,
+  (void *)(intptr_t) mknod
 };
 #endif // __linux__