diff --git a/clang/lib/ARCMigrate/ObjCMT.cpp b/clang/lib/ARCMigrate/ObjCMT.cpp index 8458a72d6a248..4fa4ab8d42b7d 100644 --- a/clang/lib/ARCMigrate/ObjCMT.cpp +++ b/clang/lib/ARCMigrate/ObjCMT.cpp @@ -123,9 +123,7 @@ class ObjCMigrateASTConsumer : public ASTConsumer { NSIntegerTypedefed(nullptr), NSUIntegerTypedefed(nullptr), Remapper(remapper), FileMgr(fileMgr), PPRec(PPRec), PP(PP), IsOutputFile(isOutputFile), FoundationIncluded(false) { - // FIXME: StringSet should have insert(iter, iter) to use here. - for (const std::string &Val : AllowList) - AllowListFilenames.insert(Val); + AllowListFilenames.insert(AllowList.begin(), AllowList.end()); } protected: