]> granicus.if.org Git - clang/commitdiff
Daniel really really likes = instead of += :)
authorChris Lattner <sabre@nondot.org>
Thu, 20 Nov 2008 07:09:32 +0000 (07:09 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 20 Nov 2008 07:09:32 +0000 (07:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59716 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Parse/ParseObjc.cpp
lib/Sema/SemaExpr.cpp

index ea92e880f78b581cbbd2be535a833e9d387159e9..cabfe7c593dd1b25550713c87409de773322d086 100644 (file)
@@ -204,7 +204,7 @@ Parser::DeclTy *Parser::ParseObjCAtInterfaceDeclaration(
 static IdentifierInfo *constructSetterName(IdentifierTable &Idents,
                                            const IdentifierInfo *Name) {
   llvm::SmallString<100> SelectorName;
-  SelectorName += "set";
+  SelectorName = "set";
   SelectorName.append(Name->getName(), Name->getName()+Name->getLength());
   SelectorName[3] = toupper(SelectorName[3]);
   return &Idents.get(&SelectorName[0], &SelectorName[SelectorName.size()]);
index f00f53a14685dcfafc58c7dd3eb65cd6d844549a..50025b284e442f99cc8e74363f4a046ddd1a2898 100644 (file)
@@ -1098,7 +1098,7 @@ CheckExtVectorComponent(QualType baseType, SourceLocation OpLoc,
 static IdentifierInfo *constructSetterName(IdentifierTable &Idents,
                                            const IdentifierInfo *Name) {
   llvm::SmallString<100> SelectorName;
-  SelectorName += "set";
+  SelectorName = "set";
   SelectorName.append(Name->getName(), Name->getName()+Name->getLength());
   SelectorName[3] = toupper(SelectorName[3]);
   return &Idents.get(&SelectorName[0], &SelectorName[SelectorName.size()]);