aboutsummaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/ExecutionEngine.cpp
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
commit7e527424fcc5e8931f9215e3a80bb266440ac613 (patch)
tree738f48b8761977d2e8e71abf72bad40fccf05f6b /lib/ExecutionEngine/ExecutionEngine.cpp
parent67580ed715a6943378b06be3973279b6043ce780 (diff)
Clean up cast
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6174 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/ExecutionEngine.cpp')
-rw-r--r--lib/ExecutionEngine/ExecutionEngine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp
index a3c3f47036..0b5d19eb6f 100644
--- a/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/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)));