summaryrefslogtreecommitdiff
path: root/lib/Lex/LiteralSupport.cpp
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2013-01-27 20:12:04 +0000
committerJordan Rose <jordan_rose@apple.com>2013-01-27 20:12:04 +0000
commitbfec916e5fc40f22ac11267e78a024cd8dcf3bbf (patch)
tree7a4ac2f001bce397ed206c2a57ca28fc42507c22 /lib/Lex/LiteralSupport.cpp
parent1df08370da6fb4578272295aabfacfb12e1d40f9 (diff)
downloadclang-bfec916e5fc40f22ac11267e78a024cd8dcf3bbf.tar.gz
clang-bfec916e5fc40f22ac11267e78a024cd8dcf3bbf.tar.bz2
clang-bfec916e5fc40f22ac11267e78a024cd8dcf3bbf.tar.xz
PR15067: Don't assert when a UCN appears in a C90 file.
Unfortunately, we can't accept the UCN as an extension because we're required to treat it as two tokens for preprocessing purposes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173622 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/LiteralSupport.cpp')
-rw-r--r--lib/Lex/LiteralSupport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Lex/LiteralSupport.cpp b/lib/Lex/LiteralSupport.cpp
index 1647aa5381..09a94a1143 100644
--- a/lib/Lex/LiteralSupport.cpp
+++ b/lib/Lex/LiteralSupport.cpp
@@ -277,7 +277,7 @@ static bool ProcessUCNEscape(const char *ThisTokBegin, const char *&ThisTokBuf,
if (!Features.CPlusPlus && !Features.C99 && Diags)
Diag(Diags, Features, Loc, ThisTokBegin, UcnBegin, ThisTokBuf,
- diag::warn_ucn_not_valid_in_c89);
+ diag::warn_ucn_not_valid_in_c89_literal);
return true;
}