SourceMgr diagnotics printing: fix a bug where printing a fixit for a source
[oota-llvm.git] / lib / Support / SourceMgr.cpp
index fbcd8f980c168fd8bb0ad3406b25f0c79469320c..d4b94f8cd5d7613f8cc4b50e91d7448232a42343 100644 (file)
@@ -470,7 +470,7 @@ void SMDiagnostic::print(const char *ProgName, raw_ostream &S,
   if (FixItInsertionLine.empty())
     return;
   
-  for (size_t i = 0, e = FixItInsertionLine.size(), OutCol = 0; i != e; ++i) {
+  for (size_t i = 0, e = FixItInsertionLine.size(), OutCol = 0; i < e; ++i) {
     if (i >= LineContents.size() || LineContents[i] != '\t') {
       S << FixItInsertionLine[i];
       ++OutCol;