diff options
Diffstat (limited to 'clang/lib/CodeGen/CGObjCGNU.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGObjCGNU.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CGObjCGNU.cpp b/clang/lib/CodeGen/CGObjCGNU.cpp index 66c55c4d7ed..a95b0467500 100644 --- a/clang/lib/CodeGen/CGObjCGNU.cpp +++ b/clang/lib/CodeGen/CGObjCGNU.cpp @@ -1822,11 +1822,8 @@ void CGObjCGNU::GenerateProtocol(const ObjCProtocolDecl *PD) { // Add all of the property methods need adding to the method list and to the // property metadata list. - for (ObjCContainerDecl::prop_iterator - iter = PD->prop_begin(), endIter = PD->prop_end(); - iter != endIter ; iter++) { + for (auto *property : PD->props()) { std::vector<llvm::Constant*> Fields; - ObjCPropertyDecl *property = *iter; Fields.push_back(MakePropertyEncodingString(property, 0)); PushPropertyAttributes(Fields, property); |