diff options
author | Chris Lattner <sabre@nondot.org> | 2003-05-13 20:29:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-05-13 20:29:17 +0000 |
commit | 09e2b44f840126455adad0e5f6f79c8d051fb36d (patch) | |
tree | e63c4c1e2b848776ab3ff88b850a4c6d85b7f66d /llvm/lib | |
parent | 9c105cd27fc329b654c0bcc693f744dcc0eebb0a (diff) | |
download | bcm5719-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.cpp | 2 |
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))); |