[cfe-commits] r59716 - in /cfe/trunk/lib: Parse/ParseObjc.cpp Sema/SemaExpr.cpp
Chris Lattner
sabre at nondot.org
Wed Nov 19 23:09:32 PST 2008
Author: lattner
Date: Thu Nov 20 01:09:32 2008
New Revision: 59716
URL: http://llvm.org/viewvc/llvm-project?rev=59716&view=rev
Log:
Daniel really really likes = instead of += :)
Modified:
cfe/trunk/lib/Parse/ParseObjc.cpp
cfe/trunk/lib/Sema/SemaExpr.cpp
Modified: cfe/trunk/lib/Parse/ParseObjc.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseObjc.cpp?rev=59716&r1=59715&r2=59716&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseObjc.cpp (original)
+++ cfe/trunk/lib/Parse/ParseObjc.cpp Thu Nov 20 01:09:32 2008
@@ -204,7 +204,7 @@
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()]);
Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=59716&r1=59715&r2=59716&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Thu Nov 20 01:09:32 2008
@@ -1098,7 +1098,7 @@
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()]);
More information about the cfe-commits
mailing list