ProtoRefs.data() instead of &ProtoRefs[0] to access the raw buffer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72291
91177308-0d34-0410-b5e6-
96231b3b80d8
ProtoRefs.reserve(NumProtoRefs);
for (unsigned I = 0; I != NumProtoRefs; ++I)
ProtoRefs.push_back(cast<ObjCProtocolDecl>(Reader.GetDecl(Record[Idx++])));
- CD->setProtocolList(&ProtoRefs[0], NumProtoRefs, *Reader.getContext());
+ CD->setProtocolList(ProtoRefs.data(), NumProtoRefs, *Reader.getContext());
CD->setNextClassCategory(cast_or_null<ObjCCategoryDecl>(Reader.GetDecl(Record[Idx++])));
CD->setLocEnd(SourceLocation::getFromRawEncoding(Record[Idx++]));
}