Fix warning about unused variable [NFC]

llvm-svn: 344724
This commit is contained in:
Mikael Holmen 2018-10-18 06:00:39 +00:00
parent 312fcc116b
commit fa41add2e5
1 changed files with 1 additions and 1 deletions

View File

@ -562,7 +562,7 @@ getQueryScopes(CodeCompletionContext &CCContext, const Sema &CCSema,
for (auto *Context : CCContext.getVisitedContexts()) {
if (isa<TranslationUnitDecl>(Context))
Info.AccessibleScopes.push_back(""); // global namespace
else if (const auto *NS = dyn_cast<NamespaceDecl>(Context))
else if (isa<NamespaceDecl>(Context))
Info.AccessibleScopes.push_back(printNamespaceScope(*Context));
}
return Info;