TypeIds are indexed by j, not i

llvm-svn: 36974
This commit is contained in:
Anton Korobeynikov 2007-05-10 15:10:34 +00:00
parent c52614ba88
commit ed5dad4306
1 changed files with 1 additions and 1 deletions

View File

@ -2948,7 +2948,7 @@ private:
} else {
// Gather the action sizes
for (unsigned j = 0, M = TypeIds.size(); j != M; ++j) {
unsigned TypeID = TypeIds[i];
unsigned TypeID = TypeIds[j];
unsigned SizeTypeID = Asm->SizeSLEB128(TypeID);
signed Action = j ? -(SizeAction + SizeTypeID) : 0;
SizeAction = SizeTypeID + Asm->SizeSLEB128(Action);