summaryrefslogtreecommitdiffstats
path: root/clang/lib/Tooling
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Tooling')
-rw-r--r--clang/lib/Tooling/Syntax/Mutations.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Tooling/Syntax/Mutations.cpp b/clang/lib/Tooling/Syntax/Mutations.cpp
index a34598c99f7..7278aff5f18 100644
--- a/clang/lib/Tooling/Syntax/Mutations.cpp
+++ b/clang/lib/Tooling/Syntax/Mutations.cpp
@@ -71,7 +71,7 @@ private:
void syntax::removeStatement(syntax::Arena &A, syntax::Statement *S) {
assert(S->canModify());
- if (auto *Parent = llvm::dyn_cast<CompoundStatement>(S->parent())) {
+ if (isa<CompoundStatement>(S->parent())) {
// A child of CompoundStatement can just be safely removed.
MutationsImpl::remove(S);
return;
OpenPOWER on IntegriCloud