Fix warnings about unused variables when assertions are turned off

Swift SVN r23641
This commit is contained in:
Dmitri Hrybenko
2014-12-03 04:48:38 +00:00
parent 66fc12bd03
commit f6e926224e
5 changed files with 8 additions and 0 deletions

View File

@@ -105,6 +105,7 @@ uint64_t swift::unicode::getUTF16Length(StringRef Str) {
strictConversion);
assert(Result == conversionOK &&
"UTF-8 encoded string cannot be converted into UTF-16 encoding");
(void)Result;
// The length of the transcoded string in UTF-16 code points.
Length = toPtr - &buffer[0];