summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/lib/CodeGen/CGDecl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp
index 176152a8369..e4895fe835c 100644
--- a/clang/lib/CodeGen/CGDecl.cpp
+++ b/clang/lib/CodeGen/CGDecl.cpp
@@ -976,9 +976,9 @@ static Address createUnnamedGlobalFrom(CodeGenModule &CGM, const VarDecl &D,
return CGM.getMangledName(FD);
} else if (const auto *OM = dyn_cast<ObjCMethodDecl>(DC)) {
return OM->getNameAsString();
- } else if (const auto *OM = dyn_cast<BlockDecl>(DC)) {
+ } else if (isa<BlockDecl>(DC)) {
return "<block>";
- } else if (const auto *OM = dyn_cast<CapturedDecl>(DC)) {
+ } else if (isa<CapturedDecl>(DC)) {
return "<captured>";
} else {
llvm::llvm_unreachable_internal("expected a function or method");
OpenPOWER on IntegriCloud