Fixes a typo which caused byte offset in debug info

for ivars to be 0. Fixes pr8353.

llvm-svn: 116273
This commit is contained in:
Fariborz Jahanian 2010-10-11 23:55:47 +00:00
parent 65eb03ed6b
commit 77890879dd
1 changed files with 1 additions and 1 deletions

View File

@ -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();