Skip to content

Commit 5749304

Browse files
committed
fix: Oops, actually use correct iterators
1 parent 7d221cd commit 5749304

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/AST/RecordLayoutBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1367,7 +1367,7 @@ void ItaniumRecordLayoutBuilder::LayoutFields(const RecordDecl *D) {
13671367
llvm::outs() << D->getNameAsString() << "\n";
13681368
}
13691369

1370-
for (auto I = D->field.begin(), End = D->field.end(); I != End; ++I) {
1370+
for (auto I = D->field_begin(), End = D->field_end(); I != End; ++I) {
13711371
auto Next(I);
13721372
++Next;
13731373
LayoutField(*I,

0 commit comments

Comments
 (0)