summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/LiteralSupport.cpp
diff options
context:
space:
mode:
authorSeth Cantrell <seth.cantrell@gmail.com>2012-01-18 12:27:08 +0000
committerSeth Cantrell <seth.cantrell@gmail.com>2012-01-18 12:27:08 +0000
commit9c2d6f02798b1061eabfdd2aefdcbc2ee062588f (patch)
treeed5a9f5c5607ba5cc6c06e3a445e387270ec6d5b /clang/lib/Lex/LiteralSupport.cpp
parent02f860597419783c06c0e1405c1ea080a4b3366d (diff)
downloadbcm5719-llvm-9c2d6f02798b1061eabfdd2aefdcbc2ee062588f.tar.gz
bcm5719-llvm-9c2d6f02798b1061eabfdd2aefdcbc2ee062588f.zip
stop claiming unicode escape sequences are too long in strings, because they never are
llvm-svn: 148391
Diffstat (limited to 'clang/lib/Lex/LiteralSupport.cpp')
-rw-r--r--clang/lib/Lex/LiteralSupport.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Lex/LiteralSupport.cpp b/clang/lib/Lex/LiteralSupport.cpp
index 8265c6fde47..290455f3ca0 100644
--- a/clang/lib/Lex/LiteralSupport.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud