aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-10-11 23:55:47 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-10-11 23:55:47 +0000
commitfe8fdba52d89ea72aba6efbb6346394277224db4 (patch)
treee57f34707081ffb2124a54f0b12fbdc4353a54e7 /lib/CodeGen/CGDebugInfo.cpp
parent83e18f806087436cb99ad2d044dff04d59d5dd05 (diff)
Fixes a typo which caused byte offset in debug info
for ivars to be 0. Fixes pr8353. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116273 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--lib/CodeGen/CGDebugInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp
index f3a3420c5a..a07b43a0b5 100644
--- a/lib/CodeGen/CGDebugInfo.cpp
+++ b/lib/CodeGen/CGDebugInfo.cpp
@@ -1125,7 +1125,7 @@ llvm::DIType CGDebugInfo::CreateType(const ObjCInterfaceType *Ty,
unsigned FieldNo = 0;
for (ObjCIvarDecl *Field = ID->all_declared_ivar_begin(); Field;
- Field = Field->getNextIvar()) {
+ Field = Field->getNextIvar(), ++FieldNo) {
llvm::DIType FieldTy = getOrCreateType(Field->getType(), Unit);
llvm::StringRef FieldName = Field->getName();