fix off-by-one computing size for section abbrevs

llvm-svn: 36388
This commit is contained in:
Chris Lattner 2007-04-24 03:29:47 +00:00
parent 4cfa616cee
commit 1e50c299a8
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ static void WriteModuleInfo(const Module *M, const ValueEnumerator &VE,
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);
}