From be53be4551bacfe05ec93ca56d29990da0cc1db9 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Wed, 13 May 2009 16:19:02 +0000 Subject: [PATCH] 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 --- lib/CodeGen/CGObjCMac.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp index 1095f4aac3..687b6343db 100644 --- a/lib/CodeGen/CGObjCMac.cpp +++ b/lib/CodeGen/CGObjCMac.cpp @@ -4160,14 +4160,14 @@ bool CGObjCNonFragileABIMac::LegacyDispatchedSelector(Selector Sel) { NonLegacyDispatchMethods.insert(GetUnarySelector("isEqualToString")); NonLegacyDispatchMethods.insert(GetUnarySelector("isEqual")); NonLegacyDispatchMethods.insert(GetUnarySelector("addObject")); - // "countByEnumeratingWithState:objects:count" auch! - llvm::SmallVector 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); } -- 2.40.0