1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

no really, implement it!

llvm-svn: 7955
This commit is contained in:
Chris Lattner 2003-08-18 17:33:15 +00:00
parent 0a017f68c9
commit 785885a8c0

View 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...