diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2003-08-13 18:16:14 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2003-08-13 18:16:14 +0000 |
commit | 37df460874e8d9d28e6833e5fb66a9aa8e1ef50a (patch) | |
tree | ac75a7547533ebe5aa3967bdd4e2b612ca0a6140 /lib/ExecutionEngine | |
parent | b428654076f5faae00c1e64a0f0a398b22703109 (diff) | |
download | external_llvm-37df460874e8d9d28e6833e5fb66a9aa8e1ef50a.zip external_llvm-37df460874e8d9d28e6833e5fb66a9aa8e1ef50a.tar.gz external_llvm-37df460874e8d9d28e6833e5fb66a9aa8e1ef50a.tar.bz2 |
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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp index 72d08f5..9b119c7 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?"); |