aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Driver/DiagChecker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Driver/DiagChecker.cpp b/Driver/DiagChecker.cpp
index 3b08924d4f..48d8049780 100644
--- a/Driver/DiagChecker.cpp
+++ b/Driver/DiagChecker.cpp
@@ -51,7 +51,7 @@ static void FindDiagnostics(const std::string &Comment,
const char * const ExpectedStr) {
// Find all expected diagnostics
typedef std::string::size_type size_type;
- size_type ColNo = std::string::npos;
+ size_type ColNo = 0;
for (;;) {
ColNo = Comment.find(ExpectedStr, ColNo);