Fix reading LLVM 1.3 bc files.

llvm-svn: 24329
This commit is contained in:
Chris Lattner 2005-11-12 18:31:54 +00:00
parent da1a853a49
commit a8fcbe17d7

View File

@ -2052,7 +2052,7 @@ void BytecodeReader::ParseModuleGlobalInfo() {
if (Handler)
Handler->handleTargetTriple(triple);
if (At != BlockEnd) {
if (At != BlockEnd && !hasAlignment) {
// If the file has section info in it, read the section names now.
unsigned NumSections = read_vbr_uint();
while (NumSections--)