From: Seth Cantrell Date: Wed, 18 Jan 2012 12:27:08 +0000 (+0000) Subject: stop claiming unicode escape sequences are too long in strings, because they never are X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5393e213f1d86a64e8e6b549c0ef76f9286ce279;p=clang stop claiming unicode escape sequences are too long in strings, because they never are git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148391 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Lex/LiteralSupport.cpp b/lib/Lex/LiteralSupport.cpp index 8265c6fde4..290455f3ca 100644 --- a/lib/Lex/LiteralSupport.cpp +++ b/lib/Lex/LiteralSupport.cpp @@ -281,8 +281,6 @@ static void EncodeUCNEscape(const char *&ThisTokBuf, const char *ThisTokEnd, ResultBuf += 2; return; } - // FIXME: We shouldn't print a diagnostic for UTF-16 mode. - if (Diags) Diags->Report(Loc, diag::warn_ucn_escape_too_large); // Convert to UTF16. UcnVal -= 0x10000;