diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-01-15 19:28:38 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-01-15 19:28:38 +0000 |
commit | e1deaac73379eeb9864215c7979f6005ebd74cef (patch) | |
tree | 6856c62b9072943492bbbb13a4959747e7576349 /lib/Lex/PTHLexer.cpp | |
parent | 13fd416b3d2b0c69247f2691f0ff344100e0faff (diff) |
PTH: Fix termination condition in binary search.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62277 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/PTHLexer.cpp')
-rw-r--r-- | lib/Lex/PTHLexer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Lex/PTHLexer.cpp b/lib/Lex/PTHLexer.cpp index a2d66fe075..19ff4942a8 100644 --- a/lib/Lex/PTHLexer.cpp +++ b/lib/Lex/PTHLexer.cpp @@ -656,7 +656,7 @@ IdentifierInfo* PTHManager::get(const char *NameStart, const char *NameEnd) { max = i; assert(!(max == min) || (min == i)); } - while (1); + while (min != max); return 0; } |