forked from OSchip/llvm-project
Fix the calculation for how big the allocated stub needs to be.
llvm-svn: 65895
This commit is contained in:
parent
7f16ed4c25
commit
aa06843c56
|
@ -1329,7 +1329,7 @@ void JIT::updateDlsymStubTable() {
|
|||
return;
|
||||
|
||||
// Calculate the size of the stub info
|
||||
unsigned offset = 4 + 4 * GVs.size();
|
||||
unsigned offset = 4 + 4 * GVs.size() + sizeof(intptr_t) * GVs.size();
|
||||
|
||||
SmallVector<unsigned, 8> Offsets;
|
||||
for (unsigned i = 0; i != GVs.size(); ++i) {
|
||||
|
|
Loading…
Reference in New Issue