summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTImporter.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2019-07-01 14:33:26 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2019-07-01 14:33:26 +0000
commit4f769361e359cd6bcf9bc735006411f7ca0410c6 (patch)
tree5eef8f8f0890bf868feb59768b59eaee593a1d49 /clang/lib/AST/ASTImporter.cpp
parent3f594ed1686b44138bee245c708773e526643aaf (diff)
downloadbcm5719-llvm-4f769361e359cd6bcf9bc735006411f7ca0410c6.tar.gz
bcm5719-llvm-4f769361e359cd6bcf9bc735006411f7ca0410c6.zip
[ASTImporter] Silence unused variable warning in Release builds. NFC.
llvm-svn: 364774
Diffstat (limited to 'clang/lib/AST/ASTImporter.cpp')
-rw-r--r--clang/lib/AST/ASTImporter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/AST/ASTImporter.cpp b/clang/lib/AST/ASTImporter.cpp
index b2de0455e2a..7d69ed9c98f 100644
--- a/clang/lib/AST/ASTImporter.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud