summaryrefslogtreecommitdiffstats
path: root/clang/lib
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
commit77890879dd4b46c6d9f16604014cf4f1b283a5cb (patch)
treee379603cf210967e0ab807303ba2abaa89784bec /clang/lib
parent65eb03ed6b0a0e1161fb3c6d7e4ab61b2eacd8c2 (diff)
downloadbcm5719-llvm-77890879dd4b46c6d9f16604014cf4f1b283a5cb.tar.gz
bcm5719-llvm-77890879dd4b46c6d9f16604014cf4f1b283a5cb.zip
Fixes a typo which caused byte offset in debug info
for ivars to be 0. Fixes pr8353. llvm-svn: 116273
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index f3a3420c5a0..a07b43a0b56 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/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();
OpenPOWER on IntegriCloud