summaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2003-08-13 18:16:14 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2003-08-13 18:16:14 +0000
commit37df460874e8d9d28e6833e5fb66a9aa8e1ef50a (patch)
treeac75a7547533ebe5aa3967bdd4e2b612ca0a6140 /lib/ExecutionEngine
parentb428654076f5faae00c1e64a0f0a398b22703109 (diff)
downloadllvm-37df460874e8d9d28e6833e5fb66a9aa8e1ef50a.tar.gz
llvm-37df460874e8d9d28e6833e5fb66a9aa8e1ef50a.tar.bz2
llvm-37df460874e8d9d28e6833e5fb66a9aa8e1ef50a.tar.xz
In ExecutionEngine::getPointerToGlobal(), throw away const qualifier
on Function * when passing it to getPointerToFunction(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7818 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r--lib/ExecutionEngine/ExecutionEngine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp
index 72d08f5fe1..9b119c73e3 100644
--- a/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/lib/ExecutionEngine/ExecutionEngine.cpp
@@ -22,7 +22,7 @@ Statistic<> NumInitBytes("lli", "Number of bytes of global vars initialized");
// 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?");