[llvm-commits] CVS: llvm/lib/Bitcode/Writer/Writer.cpp
Chris Lattner
sabre at nondot.org
Mon Apr 23 20:30:05 PDT 2007
Changes in directory llvm/lib/Bitcode/Writer:
Writer.cpp updated: 1.6 -> 1.7
---
Log message:
fix off-by-one computing size for section abbrevs
---
Diffs of the changes: (+1 -1)
Writer.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Bitcode/Writer/Writer.cpp
diff -u llvm/lib/Bitcode/Writer/Writer.cpp:1.6 llvm/lib/Bitcode/Writer/Writer.cpp:1.7
--- llvm/lib/Bitcode/Writer/Writer.cpp:1.6 Mon Apr 23 19:16:04 2007
+++ llvm/lib/Bitcode/Writer/Writer.cpp Mon Apr 23 22:29:47 2007
@@ -220,7 +220,7 @@
Abbv->Add(BitCodeAbbrevOp(0));
else
Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::FixedWidth,
- Log2_32_Ceil(SectionMap.size())));
+ Log2_32_Ceil(SectionMap.size()+1)));
// Don't bother emitting vis + thread local.
SimpleGVarAbbrev = Stream.EmitAbbrev(Abbv);
}
More information about the llvm-commits
mailing list