summaryrefslogtreecommitdiff
path: root/lib/Lex/LiteralSupport.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2013-09-18 23:23:13 +0000
committerEli Friedman <eli.friedman@gmail.com>2013-09-18 23:23:13 +0000
commit83b6397f2da177490dc68d84ec199d08db4440a3 (patch)
treed4dbc6a911ae33efa11e022d06aad46c16320a4b /lib/Lex/LiteralSupport.cpp
parent58ee425b11e178c652fa6ff4c1c924fe9b98801e (diff)
downloadclang-83b6397f2da177490dc68d84ec199d08db4440a3.tar.gz
clang-83b6397f2da177490dc68d84ec199d08db4440a3.tar.bz2
clang-83b6397f2da177490dc68d84ec199d08db4440a3.tar.xz
Fix CharByteWidth assertion in LiteralSupport.
Patch by Eelis van der Weegen. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190971 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 08d6c438d3..c637c38819 100644
--- a/lib/Lex/LiteralSupport.cpp
+++ b/lib/Lex/LiteralSupport.cpp
@@ -336,7 +336,7 @@ static void EncodeUCNEscape(const char *ThisTokBegin, const char *&ThisTokBuf,
return;
}
- assert((CharByteWidth == 1 || CharByteWidth == 2 || CharByteWidth) &&
+ assert((CharByteWidth == 1 || CharByteWidth == 2 || CharByteWidth == 4) &&
"only character widths of 1, 2, or 4 bytes supported");
(void)UcnLen;