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 | b264c5d4dc7d076bdc795932d164113243564a93 (patch) | |
tree | 166bc883dc1b62fb24751ad718cb8b792a90ef30 /llvm/lib/Bytecode/Reader/Reader.cpp | |
parent | 11ca4d636bdca280050605adb36ad050f71e4f44 (diff) | |
download | bcm5719-llvm-b264c5d4dc7d076bdc795932d164113243564a93.tar.gz bcm5719-llvm-b264c5d4dc7d076bdc795932d164113243564a93.zip |
Fix reading LLVM 1.3 bc files.
llvm-svn: 24329
Diffstat (limited to 'llvm/lib/Bytecode/Reader/Reader.cpp')
-rw-r--r-- | llvm/lib/Bytecode/Reader/Reader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bytecode/Reader/Reader.cpp b/llvm/lib/Bytecode/Reader/Reader.cpp index 645a01b0603..c97b9a824c8 100644 --- a/llvm/lib/Bytecode/Reader/Reader.cpp +++ b/llvm/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--) |