summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-05-13 20:29:17 +0000
committerChris Lattner <sabre@nondot.org>2003-05-13 20:29:17 +0000
commit09e2b44f840126455adad0e5f6f79c8d051fb36d (patch)
treee63c4c1e2b848776ab3ff88b850a4c6d85b7f66d /llvm/lib
parent9c105cd27fc329b654c0bcc693f744dcc0eebb0a (diff)
downloadbcm5719-llvm-09e2b44f840126455adad0e5f6f79c8d051fb36d.tar.gz
bcm5719-llvm-09e2b44f840126455adad0e5f6f79c8d051fb36d.zip
Clean up cast
llvm-svn: 6174
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/ExecutionEngine/ExecutionEngine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
index a3c3f47036f..0b5d19eb6f9 100644
--- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
@@ -31,7 +31,7 @@ void *ExecutionEngine::getPointerToGlobal(const GlobalValue *GV) {
GenericValue ExecutionEngine::getConstantValue(const Constant *C) {
GenericValue Result;
- if (ConstantExpr *CE = (ConstantExpr*)dyn_cast<ConstantExpr>(C))
+ if (ConstantExpr *CE = const_cast<ConstantExpr*>(dyn_cast<ConstantExpr>(C)))
switch (CE->getOpcode()) {
case Instruction::GetElementPtr: {
Result = getConstantValue(cast<Constant>(CE->getOperand(0)));
OpenPOWER on IntegriCloud