[clangd] Fix dumb && || bug from r318774

llvm-svn: 318778
This commit is contained in:
Sam McCall 2017-11-21 16:44:16 +00:00
parent 9cb89f6611
commit fb796d44f4
1 changed files with 1 additions and 1 deletions

View File

@ -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;