diff options
author | Chris Lattner <sabre@nondot.org> | 2003-08-18 17:33:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-08-18 17:33:15 +0000 |
commit | 8e693398790e42e737d06f884df93733c5d507b6 (patch) | |
tree | 858fc56b691a5f2c14b06deb1365019f5c50f3bd | |
parent | 598222b5e88948ffe7c6463919472a6baab45323 (diff) | |
download | bcm5719-llvm-8e693398790e42e737d06f884df93733c5d507b6.tar.gz bcm5719-llvm-8e693398790e42e737d06f884df93733c5d507b6.zip |
no really, implement it!
llvm-svn: 7955
-rw-r--r-- | llvm/lib/ExecutionEngine/ExecutionEngine.cpp | 3 |
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... |