projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cb89f6
)
[clangd] Fix dumb && || bug from r318774
author
Sam McCall
<sam.mccall@gmail.com>
Tue, 21 Nov 2017 16:44:16 +0000
(16:44 +0000)
committer
Sam McCall
<sam.mccall@gmail.com>
Tue, 21 Nov 2017 16:44:16 +0000
(16:44 +0000)
llvm-svn: 318778
clang-tools-extra/clangd/JSONExpr.cpp
patch
|
blob
|
history
diff --git
a/clang-tools-extra/clangd/JSONExpr.cpp
b/clang-tools-extra/clangd/JSONExpr.cpp
index
071fdbf
..
f28dcff
100644
(file)
--- 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;