mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
no really, implement it!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7955 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1ddb6b61ea
commit
c88a4ea0d6
@ -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