From 7e527424fcc5e8931f9215e3a80bb266440ac613 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 13 May 2003 20:29:17 +0000 Subject: Clean up cast git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6174 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ExecutionEngine/ExecutionEngine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/ExecutionEngine/ExecutionEngine.cpp') 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(C)) + if (ConstantExpr *CE = const_cast(dyn_cast(C))) switch (CE->getOpcode()) { case Instruction::GetElementPtr: { Result = getConstantValue(cast(CE->getOperand(0))); -- cgit v1.2.3-18-g5258