forked from OSchip/llvm-project
fix off-by-one computing size for section abbrevs
llvm-svn: 36388
This commit is contained in:
parent
4cfa616cee
commit
1e50c299a8
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue