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 | 4bbb79a642faf4e65622dcf72affee523de6c968 (patch) | |
tree | ea1d3591f4eb34e255e9fcbec8e73d877a2741ad /clang/lib/Lex/PTHLexer.cpp | |
parent | 851cdaf1fda34ca41374a7193dcb6bedcded1b3a (diff) | |
download | bcm5719-llvm-4bbb79a642faf4e65622dcf72affee523de6c968.tar.gz bcm5719-llvm-4bbb79a642faf4e65622dcf72affee523de6c968.zip |
PTH: Fix termination condition in binary search.
llvm-svn: 62277
Diffstat (limited to 'clang/lib/Lex/PTHLexer.cpp')
-rw-r--r-- | clang/lib/Lex/PTHLexer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/PTHLexer.cpp b/clang/lib/Lex/PTHLexer.cpp index a2d66fe075d..19ff4942a88 100644 --- a/clang/lib/Lex/PTHLexer.cpp +++ b/clang/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; } |