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:
parent
0a017f68c9
commit
785885a8c0
@ -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...
|
||||
|
Loading…
Reference in New Issue
Block a user