aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/DwarfWriter.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2007-05-10 15:10:34 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2007-05-10 15:10:34 +0000
commite25514d0a599c4256509b8512da71f5ae6090aa6 (patch)
treef33afbe6c0dc5f31251b391fee9323e0a74706f5 /lib/CodeGen/DwarfWriter.cpp
parent9ec81371c0bc00fb60a78a16f1cb261e420f8969 (diff)
downloadexternal_llvm-e25514d0a599c4256509b8512da71f5ae6090aa6.zip
external_llvm-e25514d0a599c4256509b8512da71f5ae6090aa6.tar.gz
external_llvm-e25514d0a599c4256509b8512da71f5ae6090aa6.tar.bz2
TypeIds are indexed by j, not i
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36974 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/DwarfWriter.cpp')
-rw-r--r--lib/CodeGen/DwarfWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/DwarfWriter.cpp b/lib/CodeGen/DwarfWriter.cpp
index 52b405c..73ec4ef 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);