[clangd] Fix dumb && || bug from r318774
llvm-svn: 318778
This commit is contained in:
parent
9cb89f6611
commit
fb796d44f4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue