commit | 2fd6616bf21d208864b4b9e03144b907ba80ed8d | [log] [tgz] |
---|---|---|
author | Nate Begeman <natebegeman@mac.com> | Mon Mar 02 23:10:14 2009 +0000 |
committer | Nate Begeman <natebegeman@mac.com> | Mon Mar 02 23:10:14 2009 +0000 |
tree | 01c73c8c2c9d061119c9bc6c5567b790cd013e56 | |
parent | 4ed9e40ef50a3dedf49c256e2bac56fd0e483416 [diff] |
Fix the calculation for how big the allocated stub needs to be. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65895 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/ExecutionEngine/JIT/JITEmitter.cpp b/lib/ExecutionEngine/JIT/JITEmitter.cpp index 1fbeba9..5c6236d 100644 --- a/lib/ExecutionEngine/JIT/JITEmitter.cpp +++ b/lib/ExecutionEngine/JIT/JITEmitter.cpp
@@ -1329,7 +1329,7 @@ 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) {