From 07eaf903c98a285febee5b17aef627d869780aea Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Mon, 1 Jul 2019 14:33:26 +0000 Subject: [PATCH] [ASTImporter] Silence unused variable warning in Release builds. NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@364774 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/ASTImporter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/AST/ASTImporter.cpp b/lib/AST/ASTImporter.cpp index b2de0455e2..7d69ed9c98 100644 --- a/lib/AST/ASTImporter.cpp +++ b/lib/AST/ASTImporter.cpp @@ -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); -- 2.40.0