]> granicus.if.org Git - clang/commitdiff
Avoid unused variable warning in release builds.
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 31 May 2016 14:14:42 +0000 (14:14 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 31 May 2016 14:14:42 +0000 (14:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@271280 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Format/Format.cpp

index 33c3a7f6c080b97067ff5360f974b9048013dd49..b5e9369593fbb29011016e8eafc9e3ec7b45c3fc 100644 (file)
@@ -1528,6 +1528,7 @@ fixCppIncludeInsertions(StringRef Code, const tooling::Replacements &Replaces,
     bool Matched = IncludeRegex.match(IncludeDirective, &Matches);
     assert(Matched && "Header insertion replacement must have replacement text "
                       "'#include ...'");
+    (void)Matched;
     auto IncludeName = Matches[2];
     int Category =
         Categories.getIncludePriority(IncludeName, /*CheckMainHeader=*/true);