[llvm-commits] CVS: llvm/tools/lli/ExecutionEngine.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue May 13 15:30:01 PDT 2003
Changes in directory llvm/tools/lli:
ExecutionEngine.cpp updated: 1.9 -> 1.10
---
Log message:
Clean up cast
---
Diffs of the changes:
Index: llvm/tools/lli/ExecutionEngine.cpp
diff -u llvm/tools/lli/ExecutionEngine.cpp:1.9 llvm/tools/lli/ExecutionEngine.cpp:1.10
--- llvm/tools/lli/ExecutionEngine.cpp:1.9 Thu May 8 11:52:16 2003
+++ llvm/tools/lli/ExecutionEngine.cpp Tue May 13 15:29:17 2003
@@ -31,7 +31,7 @@
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)));
More information about the llvm-commits
mailing list