diff options
author | Eric Christopher <echristo@gmail.com> | 2017-07-14 01:42:57 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2017-07-14 01:42:57 +0000 |
commit | 7aba9784c3d8879cb7709113062ec62c72584424 (patch) | |
tree | 48444b9966e2dd7bf78f77c991825a5fe44a8900 /clang/lib/Sema/SemaDeclObjC.cpp | |
parent | f73870eefa19c9e0e2054c8966853b7d56764934 (diff) | |
download | bcm5719-llvm-7aba9784c3d8879cb7709113062ec62c72584424.tar.gz bcm5719-llvm-7aba9784c3d8879cb7709113062ec62c72584424.zip |
Change dyn_casts with unused variables to isa statements to avoid unused variables.
llvm-svn: 307988
Diffstat (limited to 'clang/lib/Sema/SemaDeclObjC.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDeclObjC.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp index 302f24880f6..967573011d0 100644 --- a/clang/lib/Sema/SemaDeclObjC.cpp +++ b/clang/lib/Sema/SemaDeclObjC.cpp @@ -255,7 +255,7 @@ static void DiagnoseObjCImplementedDeprecations(Sema &S, const NamedDecl *ND, bool IsCategory = false; AvailabilityResult Availability = ND->getAvailability(); if (Availability != AR_Deprecated) { - if (const auto *MD = dyn_cast<ObjCMethodDecl>(ND)) { + if (isa<ObjCMethodDecl>(ND)) { if (Availability != AR_Unavailable) return; // Warn about implementing unavailable methods. |