From e3e1570695c9a3d2fb04653da724298fa17f1c1b Mon Sep 17 00:00:00 2001 From: Sam McCall Date: Tue, 19 Dec 2017 17:05:00 +0000 Subject: [clangd] Fix warnings/compiler pickiness after r321083 llvm-svn: 321086 --- clang-tools-extra/clangd/CodeComplete.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang-tools-extra/clangd/CodeComplete.cpp') diff --git a/clang-tools-extra/clangd/CodeComplete.cpp b/clang-tools-extra/clangd/CodeComplete.cpp index 226e8f8e768..7e549a9008c 100644 --- a/clang-tools-extra/clangd/CodeComplete.cpp +++ b/clang-tools-extra/clangd/CodeComplete.cpp @@ -784,7 +784,7 @@ SpecifiedScope extraCompletionScope(Sema &S, const CXXScopeSpec &SS) { DeclContext *DC = S.computeDeclContext(SS); if (auto *NS = llvm::dyn_cast(DC)) { Info.Resolved = NS->getQualifiedNameAsString(); - } else if (auto *TU = llvm::dyn_cast(DC)) { + } else if (llvm::dyn_cast(DC) != nullptr) { Info.Resolved = "::"; // Sema does not include the suffix "::" in the range of SS, so we add // it back here. -- cgit v1.2.3