]> granicus.if.org Git - clang/commitdiff
[ASTImporter] Silence unused variable warning in Release builds. NFC.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 1 Jul 2019 14:33:26 +0000 (14:33 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 1 Jul 2019 14:33:26 +0000 (14:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@364774 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ASTImporter.cpp

index b2de0455e2a4b37efcfcfebb43dadfea3dcbb7da..7d69ed9c98f977469ad6e616bc5732ce6834f304 100644 (file)
@@ -8655,6 +8655,7 @@ ASTImporter::getImportDeclErrorIfAny(Decl *FromD) const {
 
 void ASTImporter::setImportDeclError(Decl *From, ImportError Error) {
   auto InsertRes = ImportDeclErrors.insert({From, Error});
+  (void)InsertRes;
   // Either we set the error for the first time, or we already had set one and
   // now we want to set the same error.
   assert(InsertRes.second || InsertRes.first->second.Error == Error.Error);