summaryrefslogtreecommitdiffstats
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
commitf9edb00fa49c178f91bf5a367a604c7c88fa4518 (patch)
treec7fc5dd1fd7cc64da58e46cb8671225fced6efaa
parent7506e6bf2531208dda835fef73b8605654454fa9 (diff)
downloadbcm5719-llvm-f9edb00fa49c178f91bf5a367a604c7c88fa4518.tar.gz
bcm5719-llvm-f9edb00fa49c178f91bf5a367a604c7c88fa4518.zip
Fix CharByteWidth assertion in LiteralSupport.
Patch by Eelis van der Weegen. llvm-svn: 190971
-rw-r--r--clang/lib/Lex/LiteralSupport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/LiteralSupport.cpp b/clang/lib/Lex/LiteralSupport.cpp
index 08d6c438d32..c637c388192 100644
--- a/clang/lib/Lex/LiteralSupport.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud