[llvm-commits] CVS: llvm/lib/Bytecode/Reader/Reader.cpp

Chris Lattner lattner at cs.uiuc.edu
Sat Nov 12 10:32:05 PST 2005



Changes in directory llvm/lib/Bytecode/Reader:

Reader.cpp updated: 1.174 -> 1.175
---
Log message:

Fix reading LLVM 1.3 bc files.


---
Diffs of the changes:  (+1 -1)

 Reader.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Bytecode/Reader/Reader.cpp
diff -u llvm/lib/Bytecode/Reader/Reader.cpp:1.174 llvm/lib/Bytecode/Reader/Reader.cpp:1.175
--- llvm/lib/Bytecode/Reader/Reader.cpp:1.174	Fri Nov 11 19:33:40 2005
+++ llvm/lib/Bytecode/Reader/Reader.cpp	Sat Nov 12 12:31:54 2005
@@ -2052,7 +2052,7 @@
     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--)






More information about the llvm-commits mailing list