projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ddb6b6
)
no really, implement it!
author
Chris Lattner
<sabre@nondot.org>
Mon, 18 Aug 2003 17:33:15 +0000
(17:33 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 18 Aug 2003 17:33:15 +0000
(17:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7955
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/ExecutionEngine/ExecutionEngine.cpp
patch
|
blob
|
history
diff --git
a/lib/ExecutionEngine/ExecutionEngine.cpp
b/lib/ExecutionEngine/ExecutionEngine.cpp
index e37d56f2cca0b5334070ba090fad778c8166f1ce..9b51e3c798fb6c9ac744f97a7890a22ec82f476a 100644
(file)
--- 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...