diff options
author | Sam McCall <sam.mccall@gmail.com> | 2017-11-21 16:44:16 +0000 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2017-11-21 16:44:16 +0000 |
commit | fb796d44f4c61c6cc4210de7bf019dd73a594819 (patch) | |
tree | f624b4354f1f6b57e3a968503eadeb4f14cb153b | |
parent | 9cb89f6611fbdff7512e7138c4dd7202b0cfcf48 (diff) | |
download | bcm5719-llvm-fb796d44f4c61c6cc4210de7bf019dd73a594819.tar.gz bcm5719-llvm-fb796d44f4c61c6cc4210de7bf019dd73a594819.zip |
[clangd] Fix dumb && || bug from r318774
llvm-svn: 318778
-rw-r--r-- | clang-tools-extra/clangd/JSONExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clangd/JSONExpr.cpp b/clang-tools-extra/clangd/JSONExpr.cpp index 071fdbf42ef..f28dcffab6a 100644 --- a/clang-tools-extra/clangd/JSONExpr.cpp +++ b/clang-tools-extra/clangd/JSONExpr.cpp @@ -344,7 +344,7 @@ bool Parser::parseUnicode(std::string &Out) { uint16_t Second; if (!Parse4Hex(Second)) return false; - if (Second < 0xDC00 && Second >= 0xE000) { + if (Second < 0xDC00 || Second >= 0xE000) { Invalid(); // Leading surrogate not followed by trailing. First = Second; // Second escape still needs to be processed. continue; |