summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2017-11-21 16:44:16 +0000
committerSam McCall <sam.mccall@gmail.com>2017-11-21 16:44:16 +0000
commitfb796d44f4c61c6cc4210de7bf019dd73a594819 (patch)
treef624b4354f1f6b57e3a968503eadeb4f14cb153b
parent9cb89f6611fbdff7512e7138c4dd7202b0cfcf48 (diff)
downloadbcm5719-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.cpp2
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;
OpenPOWER on IntegriCloud