]> granicus.if.org Git - clang/commitdiff
Fix a couple of unused variables in no-asserts
authorJustin Bogner <mail@justinbogner.com>
Wed, 1 Jul 2015 05:41:50 +0000 (05:41 +0000)
committerJustin Bogner <mail@justinbogner.com>
Wed, 1 Jul 2015 05:41:50 +0000 (05:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@241144 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/Rewrite/InclusionRewriter.cpp

index 03cc844c390b7744a8cedf3d587a75fa9597be86..08d6cf1f92c2b77b69700d76244e8fcac5027c33 100644 (file)
@@ -150,6 +150,7 @@ void InclusionRewriter::FileChanged(SourceLocation Loc,
   FileID Id = FullSourceLoc(Loc, SM).getFileID();
   auto P = FileIncludes.insert(std::make_pair(
       LastInclusionLocation.getRawEncoding(), IncludedFile(Id, NewFileType)));
+  (void)P;
   assert(P.second && "Unexpected revisitation of the same include directive");
   LastInclusionLocation = SourceLocation();
 }
@@ -184,6 +185,7 @@ void InclusionRewriter::InclusionDirective(SourceLocation HashLoc,
   if (Imported) {
     auto P = ModuleIncludes.insert(
         std::make_pair(HashLoc.getRawEncoding(), Imported));
+    (void)P;
     assert(P.second && "Unexpected revisitation of the same include directive");
   } else
     LastInclusionLocation = HashLoc;