no really, implement it!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7955 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp
index e37d56f..9b51e3c 100644
--- a/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/lib/ExecutionEngine/ExecutionEngine.cpp
@@ -55,8 +55,7 @@
         return getConstantValue(Op);
 
       // Handle a cast of pointer to any integral type...
-      if (isa<PointerType>(Op->getType()) &&
-          (C->getType() == Type::LongTy || C->getType() == Type::ULongTy))
+      if (isa<PointerType>(Op->getType()) && C->getType()->isIntegral())
         return getConstantValue(Op);
         
       // Handle cast of long to pointer...