[cfe-commits] r62187 - /cfe/trunk/lib/Lex/PTHLexer.cpp
Ted Kremenek
kremenek at apple.com
Tue Jan 13 14:16:46 PST 2009
Author: kremenek
Date: Tue Jan 13 16:16:45 2009
New Revision: 62187
URL: http://llvm.org/viewvc/llvm-project?rev=62187&view=rev
Log:
Fix corner cases in PTH getSpelling() binary search.
Modified:
cfe/trunk/lib/Lex/PTHLexer.cpp
Modified: cfe/trunk/lib/Lex/PTHLexer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/PTHLexer.cpp?rev=62187&r1=62186&r2=62187&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/PTHLexer.cpp (original)
+++ cfe/trunk/lib/Lex/PTHLexer.cpp Tue Jan 13 16:16:45 2009
@@ -400,6 +400,9 @@
}
if (TokOffset < fpos) {
+ if (i == min)
+ break;
+
min = i;
continue;
}
More information about the cfe-commits
mailing list