[cfe-commits] r73758 - /cfe/trunk/tools/clang-cc/clang-cc.cpp

Argiris Kirtzidis akyrtzi at gmail.com
Thu Jun 18 23:32:47 PDT 2009


Author: akirtzidis
Date: Fri Jun 19 01:32:46 2009
New Revision: 73758

URL: http://llvm.org/viewvc/llvm-project?rev=73758&view=rev
Log:
Tiny correction on the command-line source location parser.

Modified:
    cfe/trunk/tools/clang-cc/clang-cc.cpp

Modified: cfe/trunk/tools/clang-cc/clang-cc.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-cc/clang-cc.cpp?rev=73758&r1=73757&r2=73758&view=diff

==============================================================================
--- cfe/trunk/tools/clang-cc/clang-cc.cpp (original)
+++ cfe/trunk/tools/clang-cc/clang-cc.cpp Fri Jun 19 01:32:46 2009
@@ -140,7 +140,7 @@
       }
 
       std::string::size_type FirstColon = ArgValue.rfind(':', SecondColon-1);
-      if (SecondColon == std::string::npos) {
+      if (FirstColon == std::string::npos) {
         std::fprintf(stderr, "%s\n", ExpectedFormat);
         return true;
       }





More information about the cfe-commits mailing list