diff options
-rw-r--r-- | lib/Archive/ArchiveReader.cpp | 5 | ||||
-rw-r--r-- | lib/Bytecode/Archive/ArchiveReader.cpp | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/Archive/ArchiveReader.cpp b/lib/Archive/ArchiveReader.cpp index 34413e53bd..34b36a6f38 100644 --- a/lib/Archive/ArchiveReader.cpp +++ b/lib/Archive/ArchiveReader.cpp @@ -354,9 +354,10 @@ Archive::loadSymbolTable() { // See if its the symbol table if (mbr->isLLVMSymbolTable()) { parseSymbolTable(mbr->getData(), mbr->getSize()); - FirstFile = At + mbr->getSize(); + At += mbr->getSize(); if ((intptr_t(At) & 1) == 1) - FirstFile++; + At++; + FirstFile = At; } else { // There's no symbol table in the file. We have to rebuild it from scratch // because the intent of this method is to get the symbol table loaded so diff --git a/lib/Bytecode/Archive/ArchiveReader.cpp b/lib/Bytecode/Archive/ArchiveReader.cpp index 34413e53bd..34b36a6f38 100644 --- a/lib/Bytecode/Archive/ArchiveReader.cpp +++ b/lib/Bytecode/Archive/ArchiveReader.cpp @@ -354,9 +354,10 @@ Archive::loadSymbolTable() { // See if its the symbol table if (mbr->isLLVMSymbolTable()) { parseSymbolTable(mbr->getData(), mbr->getSize()); - FirstFile = At + mbr->getSize(); + At += mbr->getSize(); if ((intptr_t(At) & 1) == 1) - FirstFile++; + At++; + FirstFile = At; } else { // There's no symbol table in the file. We have to rebuild it from scratch // because the intent of this method is to get the symbol table loaded so |