mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 05:25:47 +00:00
TypeIds are indexed by j, not i
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36974 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2948,7 +2948,7 @@ private:
|
|||||||
} else {
|
} else {
|
||||||
// Gather the action sizes
|
// Gather the action sizes
|
||||||
for (unsigned j = 0, M = TypeIds.size(); j != M; ++j) {
|
for (unsigned j = 0, M = TypeIds.size(); j != M; ++j) {
|
||||||
unsigned TypeID = TypeIds[i];
|
unsigned TypeID = TypeIds[j];
|
||||||
unsigned SizeTypeID = Asm->SizeSLEB128(TypeID);
|
unsigned SizeTypeID = Asm->SizeSLEB128(TypeID);
|
||||||
signed Action = j ? -(SizeAction + SizeTypeID) : 0;
|
signed Action = j ? -(SizeAction + SizeTypeID) : 0;
|
||||||
SizeAction = SizeTypeID + Asm->SizeSLEB128(Action);
|
SizeAction = SizeTypeID + Asm->SizeSLEB128(Action);
|
||||||
|
Reference in New Issue
Block a user