forked from OSchip/llvm-project
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:
parent
65eb03ed6b
commit
77890879dd
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue