]> granicus.if.org Git - clang/commitdiff
Tiny correction on the command-line source location parser.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 19 Jun 2009 06:32:46 +0000 (06:32 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 19 Jun 2009 06:32:46 +0000 (06:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73758 91177308-0d34-0410-b5e6-96231b3b80d8

tools/clang-cc/clang-cc.cpp

index 1f1ae8588a48786296e0494015cf36e4fd45f907..39d839e4d8f254b8916bda222dbdfc42ddd77c31 100644 (file)
@@ -140,7 +140,7 @@ namespace llvm {
       }
 
       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;
       }