[llvm-commits] CVS: llvm/tools/lli/ExecutionEngine.cpp
Brian Gaeke
gaeke at niobe.cs.uiuc.edu
Wed Aug 13 13:17:11 PDT 2003
Changes in directory llvm/tools/lli:
ExecutionEngine.cpp updated: 1.18 -> 1.19
---
Log message:
In ExecutionEngine::getPointerToGlobal(), throw away const qualifier
on Function * when passing it to getPointerToFunction().
---
Diffs of the changes:
Index: llvm/tools/lli/ExecutionEngine.cpp
diff -u llvm/tools/lli/ExecutionEngine.cpp:1.18 llvm/tools/lli/ExecutionEngine.cpp:1.19
--- llvm/tools/lli/ExecutionEngine.cpp:1.18 Tue Aug 5 12:00:30 2003
+++ llvm/tools/lli/ExecutionEngine.cpp Wed Aug 13 13:16:14 2003
@@ -22,7 +22,7 @@
// value. This may involve code generation if it's a function.
//
void *ExecutionEngine::getPointerToGlobal(const GlobalValue *GV) {
- if (const Function *F = dyn_cast<Function>(GV))
+ if (Function *F = const_cast<Function*>(dyn_cast<Function>(GV)))
return getPointerToFunction(F);
assert(GlobalAddress[GV] && "Global hasn't had an address allocated yet?");
More information about the llvm-commits
mailing list