Fix reading LLVM 1.3 bc files.
authorChris Lattner <sabre@nondot.org>
Sat, 12 Nov 2005 18:31:54 +0000 (18:31 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 12 Nov 2005 18:31:54 +0000 (18:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24329 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bytecode/Reader/Reader.cpp

index 645a01b0603f50e00e18b4239d753c880ec4cc85..c97b9a824c8614519f3048e230c85351b014d1cd 100644 (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--)