fix off-by-one computing size for section abbrevs
llvm-svn: 36388
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user