summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2012-04-18 17:25:16 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2012-04-18 17:25:16 +0000
commit0ddb097bb02ddee8f1924ee4fcca384cb18ad8c5 (patch)
tree547c888e8becb091922235bcfcd880d307d0f356
parentd448ce0932708038adb93456b817722a314b647f (diff)
Suppress -Wunused-variable warning in -Asserts build
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155011 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Frontend/TextDiagnostic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Frontend/TextDiagnostic.cpp b/lib/Frontend/TextDiagnostic.cpp
index 66362381df..65fb1ae13f 100644
--- a/lib/Frontend/TextDiagnostic.cpp
+++ b/lib/Frontend/TextDiagnostic.cpp
@@ -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";
}
}
-