[cfe-commits] r148391 - /cfe/trunk/lib/Lex/LiteralSupport.cpp

Seth Cantrell seth.cantrell at gmail.com
Wed Jan 18 04:27:08 PST 2012


Author: socantre
Date: Wed Jan 18 06:27:08 2012
New Revision: 148391

URL: http://llvm.org/viewvc/llvm-project?rev=148391&view=rev
Log:
stop claiming unicode escape sequences are too long in strings, because they never are

Modified:
    cfe/trunk/lib/Lex/LiteralSupport.cpp

Modified: cfe/trunk/lib/Lex/LiteralSupport.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/LiteralSupport.cpp?rev=148391&r1=148390&r2=148391&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/LiteralSupport.cpp (original)
+++ cfe/trunk/lib/Lex/LiteralSupport.cpp Wed Jan 18 06:27:08 2012
@@ -281,8 +281,6 @@
       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;





More information about the cfe-commits mailing list