From: Anton Korobeynikov Date: Thu, 10 May 2007 15:10:34 +0000 (+0000) Subject: TypeIds are indexed by j, not i X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e25514d0a599c4256509b8512da71f5ae6090aa6;p=oota-llvm.git TypeIds are indexed by j, not i git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36974 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/DwarfWriter.cpp b/lib/CodeGen/DwarfWriter.cpp index 52b405cda1a..73ec4efba78 100644 --- a/lib/CodeGen/DwarfWriter.cpp +++ b/lib/CodeGen/DwarfWriter.cpp @@ -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);