Fix unused variable

This commit is contained in:
Martchus 2018-01-20 20:43:29 +01:00
parent 5f86cc6243
commit c2e15f10fb
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ bool Consumer::HandleTopLevelDecl(clang::DeclGroupRef groupRefDecl)
{
for (clang::Decl *decl : groupRefDecl) {
if (clang::NamespaceDecl *namespaceDecl = llvm::dyn_cast<clang::NamespaceDecl>(decl)) {
if (!shouldParseDecl(decl)) {
if (!shouldParseDecl(namespaceDecl)) {
continue;
}
}