r271280 - Avoid unused variable warning in release builds.

Benjamin Kramer via cfe-commits cfe-commits at lists.llvm.org
Tue May 31 07:14:43 PDT 2016


Author: d0k
Date: Tue May 31 09:14:42 2016
New Revision: 271280

URL: http://llvm.org/viewvc/llvm-project?rev=271280&view=rev
Log:
Avoid unused variable warning in release builds.

Modified:
    cfe/trunk/lib/Format/Format.cpp

Modified: cfe/trunk/lib/Format/Format.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/Format.cpp?rev=271280&r1=271279&r2=271280&view=diff
==============================================================================
--- cfe/trunk/lib/Format/Format.cpp (original)
+++ cfe/trunk/lib/Format/Format.cpp Tue May 31 09:14:42 2016
@@ -1528,6 +1528,7 @@ fixCppIncludeInsertions(StringRef Code,
     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);




More information about the cfe-commits mailing list