no really, implement it!
[oota-llvm.git] / 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...