summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-18 17:33:15 +0000
committerChris Lattner <sabre@nondot.org>2003-08-18 17:33:15 +0000
commit8e693398790e42e737d06f884df93733c5d507b6 (patch)
tree858fc56b691a5f2c14b06deb1365019f5c50f3bd /llvm/lib/ExecutionEngine/ExecutionEngine.cpp
parent598222b5e88948ffe7c6463919472a6baab45323 (diff)
downloadbcm5719-llvm-8e693398790e42e737d06f884df93733c5d507b6.tar.gz
bcm5719-llvm-8e693398790e42e737d06f884df93733c5d507b6.zip
no really, implement it!
llvm-svn: 7955
Diffstat (limited to 'llvm/lib/ExecutionEngine/ExecutionEngine.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/ExecutionEngine.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
index e37d56f2cca..9b51e3c798f 100644
--- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
@@ -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...
OpenPOWER on IntegriCloud