summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/Quality.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/clangd/Quality.cpp')
-rw-r--r--clang-tools-extra/clangd/Quality.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clangd/Quality.cpp b/clang-tools-extra/clangd/Quality.cpp
index 2dd844408f6..be02365fff1 100644
--- a/clang-tools-extra/clangd/Quality.cpp
+++ b/clang-tools-extra/clangd/Quality.cpp
@@ -198,7 +198,7 @@ ComputeScope(const NamedDecl *D) {
if (R->isInjectedClassName())
DC = DC->getParent();
// Class constructor should have the same scope as the class.
- if (const auto *Ctor = llvm::dyn_cast<CXXConstructorDecl>(D))
+ if (isa<CXXConstructorDecl>(D))
DC = DC->getParent();
bool InClass = false;
for (; !DC->isFileContext(); DC = DC->getParent()) {
OpenPOWER on IntegriCloud