diff options
author | Nate Begeman <natebegeman@mac.com> | 2009-03-02 23:10:14 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2009-03-02 23:10:14 +0000 |
commit | aa06843c560b785e85914b23a67b40ffa5bdad04 (patch) | |
tree | 7ecf1589ee7c0ed319d50f795764b565ae4c2a9f | |
parent | 7f16ed4c25f5b9454096ad14a187de9b87120148 (diff) | |
download | bcm5719-llvm-aa06843c560b785e85914b23a67b40ffa5bdad04.tar.gz bcm5719-llvm-aa06843c560b785e85914b23a67b40ffa5bdad04.zip |
Fix the calculation for how big the allocated stub needs to be.
llvm-svn: 65895
-rw-r--r-- | llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp b/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp index 1fbeba923c3..5c6236dcaeb 100644 --- a/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp +++ b/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp @@ -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) { |