Fix the calculation for how big the allocated stub needs to be.

llvm-svn: 65895
This commit is contained in:
Nate Begeman 2009-03-02 23:10:14 +00:00
parent 7f16ed4c25
commit aa06843c56
1 changed files with 1 additions and 1 deletions

View File

@ -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) {