aboutsummaryrefslogtreecommitdiff
path: root/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
commit39979ea43ffac86edca0b2d7c580846175fbdb53 (patch)
treea52471aa12794ae9cdac34c64d707c74beb4dc49 /lib/Bytecode/Reader/Reader.cpp
parentb475c42314fb1cacc6227171643bd98dc0064229 (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/Reader/Reader.cpp')
-rw-r--r--lib/Bytecode/Reader/Reader.cpp2
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--)