commit | 7bd88aa620406ab99547169b973de085785a0ca2 | [log] [tgz] |
---|---|---|
author | Ted Kremenek <kremenek@apple.com> | Tue Jan 13 22:16:45 2009 +0000 |
committer | Ted Kremenek <kremenek@apple.com> | Tue Jan 13 22:16:45 2009 +0000 |
tree | e27e6ec898b70cc84339503954079cbbf12fd1e1 | |
parent | f02f6f0ee3e05b958bcf67f00f4503671d67eccd [diff] [blame] |
Fix corner cases in PTH getSpelling() binary search. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62187 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Lex/PTHLexer.cpp b/lib/Lex/PTHLexer.cpp index 4a84f9b..c5fc6f3 100644 --- a/lib/Lex/PTHLexer.cpp +++ b/lib/Lex/PTHLexer.cpp
@@ -400,6 +400,9 @@ } if (TokOffset < fpos) { + if (i == min) + break; + min = i; continue; }