diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-12-03 00:09:56 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-12-03 00:09:56 +0000 |
commit | 23ef69d197ba3b5e9602f7161fee50990059502a (patch) | |
tree | 9ce8c5334cf12a40b35c5528f39be65ec68bb981 /lib | |
parent | 8c00ad1e3897e8a00f41bbd52135be8390d5c15c (diff) |
Fix diagnostic for reporting bad escape sequence.
Patch by Paul Curtis!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120759 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Lex/LiteralSupport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Lex/LiteralSupport.cpp b/lib/Lex/LiteralSupport.cpp index 7857ae440a..7f4ea0e9a3 100644 --- a/lib/Lex/LiteralSupport.cpp +++ b/lib/Lex/LiteralSupport.cpp @@ -151,7 +151,7 @@ static unsigned ProcessCharEscape(const char *&ThisTokBuf, if (Diags == 0) break; - if (isgraph(ThisTokBuf[0])) + if (isgraph(ResultChar)) Diags->Report(Loc, diag::ext_unknown_escape) << std::string()+(char)ResultChar; else |