From 5393e213f1d86a64e8e6b549c0ef76f9286ce279 Mon Sep 17 00:00:00 2001 From: Seth Cantrell Date: Wed, 18 Jan 2012 12:27:08 +0000 Subject: [PATCH] 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 --- lib/Lex/LiteralSupport.cpp | 2 -- 1 file changed, 2 deletions(-) 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; -- 2.40.0