mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-13 09:33:50 +00:00
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
This commit is contained in:
parent
b428654076
commit
37df460874
@ -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?");
|
||||
|
Loading…
x
Reference in New Issue
Block a user