[cfe-commits] r49237 - /cfe/trunk/Driver/RewriteTest.cpp

Steve Naroff snaroff at apple.com
Fri Apr 4 15:23:44 PDT 2008


Author: snaroff
Date: Fri Apr  4 17:23:44 2008
New Revision: 49237

URL: http://llvm.org/viewvc/llvm-project?rev=49237&view=rev
Log:
Fix MS-specific bug in RewriteTest::RewriteObjCMethodDecl().

Modified:
    cfe/trunk/Driver/RewriteTest.cpp

Modified: cfe/trunk/Driver/RewriteTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/RewriteTest.cpp?rev=49237&r1=49236&r2=49237&view=diff

==============================================================================
--- cfe/trunk/Driver/RewriteTest.cpp (original)
+++ cfe/trunk/Driver/RewriteTest.cpp Fri Apr  4 17:23:44 2008
@@ -678,9 +678,8 @@
     NameStr += CID->getName();
     NameStr += "_";
   }
-  // Append selector names, replacing ':' with '_'
-  const char *selName = OMD->getSelector().getName().c_str();
-  if (!strchr(selName, ':'))
+  // Append selector names, replacing ':' with '_' 
+  if (OMD->getSelector().getName().find(':') == std::string::npos)
     NameStr +=  OMD->getSelector().getName();
   else {
     std::string selString = OMD->getSelector().getName();





More information about the cfe-commits mailing list