Removed 4-letter :) word in comment.
Used simple array for Selector build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71674 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp
index 1095f4a..687b634 100644
--- a/lib/CodeGen/CGObjCMac.cpp
+++ b/lib/CodeGen/CGObjCMac.cpp
@@ -4160,14 +4160,14 @@
NonLegacyDispatchMethods.insert(GetUnarySelector("isEqualToString"));
NonLegacyDispatchMethods.insert(GetUnarySelector("isEqual"));
NonLegacyDispatchMethods.insert(GetUnarySelector("addObject"));
- // "countByEnumeratingWithState:objects:count" auch!
- llvm::SmallVector<IdentifierInfo *, 4> KeyIdents;
- KeyIdents.push_back(
- &CGM.getContext().Idents.get("countByEnumeratingWithState"));
- KeyIdents.push_back(&CGM.getContext().Idents.get("objects"));
- KeyIdents.push_back(&CGM.getContext().Idents.get("count"));
- NonLegacyDispatchMethods.insert(CGM.getContext().Selectors.getSelector(
- 3, &KeyIdents[0]));
+ // "countByEnumeratingWithState:objects:count"
+ IdentifierInfo *KeyIdents[] = {
+ &CGM.getContext().Idents.get("countByEnumeratingWithState"),
+ &CGM.getContext().Idents.get("objects"),
+ &CGM.getContext().Idents.get("count")
+ };
+ NonLegacyDispatchMethods.insert(
+ CGM.getContext().Selectors.getSelector(3, KeyIdents));
}
return (NonLegacyDispatchMethods.count(Sel) == 0);
}