diff --git a/include/llvm/ExecutionEngine/GenericValue.h b/include/llvm/ExecutionEngine/GenericValue.h
index 0446795d314..3fb66a11515 100644
--- a/include/llvm/ExecutionEngine/GenericValue.h
+++ b/include/llvm/ExecutionEngine/GenericValue.h
@@ -19,7 +19,7 @@
 
 namespace llvm {
 
-typedef uint64_t PointerTy;
+typedef uintptr_t PointerTy;
 
 union GenericValue {
   bool            BoolVal;