From 09e2b44f840126455adad0e5f6f79c8d051fb36d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 13 May 2003 20:29:17 +0000 Subject: [PATCH] Clean up cast llvm-svn: 6174 --- llvm/lib/ExecutionEngine/ExecutionEngine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp index a3c3f47036f0..0b5d19eb6f9c 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(C)) + if (ConstantExpr *CE = const_cast(dyn_cast(C))) switch (CE->getOpcode()) { case Instruction::GetElementPtr: { Result = getConstantValue(cast(CE->getOperand(0)));