summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Reader/Reader.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-11-12 18:31:54 +0000
committerChris Lattner <sabre@nondot.org>2005-11-12 18:31:54 +0000
commitb264c5d4dc7d076bdc795932d164113243564a93 (patch)
tree166bc883dc1b62fb24751ad718cb8b792a90ef30 /llvm/lib/Bytecode/Reader/Reader.cpp
parent11ca4d636bdca280050605adb36ad050f71e4f44 (diff)
downloadbcm5719-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.cpp2
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--)
OpenPOWER on IntegriCloud