r364774 - [ASTImporter] Silence unused variable warning in Release builds. NFC.
Benjamin Kramer via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 1 07:33:26 PDT 2019
Author: d0k
Date: Mon Jul 1 07:33:26 2019
New Revision: 364774
URL: http://llvm.org/viewvc/llvm-project?rev=364774&view=rev
Log:
[ASTImporter] Silence unused variable warning in Release builds. NFC.
Modified:
cfe/trunk/lib/AST/ASTImporter.cpp
Modified: cfe/trunk/lib/AST/ASTImporter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTImporter.cpp?rev=364774&r1=364773&r2=364774&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ASTImporter.cpp (original)
+++ cfe/trunk/lib/AST/ASTImporter.cpp Mon Jul 1 07:33:26 2019
@@ -8655,6 +8655,7 @@ ASTImporter::getImportDeclErrorIfAny(Dec
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);
More information about the cfe-commits
mailing list