From: Argyrios Kyrtzidis Date: Fri, 19 Jun 2009 06:32:46 +0000 (+0000) Subject: Tiny correction on the command-line source location parser. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c7a6036bb21a6b28eb54b4b62d8bc74841dd1dc;p=clang Tiny correction on the command-line source location parser. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73758 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/clang-cc/clang-cc.cpp b/tools/clang-cc/clang-cc.cpp index 1f1ae8588a..39d839e4d8 100644 --- a/tools/clang-cc/clang-cc.cpp +++ b/tools/clang-cc/clang-cc.cpp @@ -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; }