Suppress -Wunused-variable warning in -Asserts build

llvm-svn: 155011
This commit is contained in:
Matt Beaumont-Gay 2012-04-18 17:25:16 +00:00
parent 905969a1d4
commit 69e227b7b1
1 changed files with 1 additions and 1 deletions

View File

@ -114,6 +114,7 @@ printableTextForNextCharacter(StringRef SourceLine, size_t *i,
ConversionResult res = ConvertUTF8toUTF32(&begin, cp_end, &cptr, cptr+1,
strictConversion);
(void)res;
assert(conversionOK==res);
assert(0 < begin-original_begin
&& "we must be further along in the string now");
@ -1161,4 +1162,3 @@ void TextDiagnostic::emitParseableFixits(ArrayRef<FixItHint> Hints) {
OS << "\"\n";
}
}