diff options
author | Chris Lattner <sabre@nondot.org> | 2005-11-12 18:31:54 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-11-12 18:31:54 +0000 |
commit | 39979ea43ffac86edca0b2d7c580846175fbdb53 (patch) | |
tree | a52471aa12794ae9cdac34c64d707c74beb4dc49 /lib/Bytecode | |
parent | b475c42314fb1cacc6227171643bd98dc0064229 (diff) |
Fix reading LLVM 1.3 bc files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24329 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode')
-rw-r--r-- | lib/Bytecode/Reader/Reader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp index 645a01b060..c97b9a824c 100644 --- a/lib/Bytecode/Reader/Reader.cpp +++ b/lib/Bytecode/Reader/Reader.cpp @@ -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--) |