summaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine
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
commitc88a4ea0d6ba705a81401eda50796b15c994f6f9 (patch)
tree06733cada43d3d124886d3fa5ae894930875b4da /lib/ExecutionEngine
parent1ddb6b61ea5973aa097088ef1be35625b91956a2 (diff)
downloadllvm-c88a4ea0d6ba705a81401eda50796b15c994f6f9.tar.gz
llvm-c88a4ea0d6ba705a81401eda50796b15c994f6f9.tar.bz2
llvm-c88a4ea0d6ba705a81401eda50796b15c994f6f9.tar.xz
no really, implement it!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7955 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r--lib/ExecutionEngine/ExecutionEngine.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp
index e37d56f2cc..9b51e3c798 100644
--- a/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/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...