no really, implement it!
authorChris Lattner <sabre@nondot.org>
Mon, 18 Aug 2003 17:33:15 +0000 (17:33 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 18 Aug 2003 17:33:15 +0000 (17:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7955 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/ExecutionEngine.cpp

index e37d56f2cca0b5334070ba090fad778c8166f1ce..9b51e3c798fb6c9ac744f97a7890a22ec82f476a 100644 (file)
@@ -55,8 +55,7 @@ GenericValue ExecutionEngine::getConstantValue(const Constant *C) {
         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...