From: Simon Pilgrim Date: Sat, 23 Mar 2019 16:16:46 +0000 (+0000) Subject: Fix unused variable warning. NFCI. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1ba406c9fcd29257773e775f3120ffe041ddfec8;p=platform%2Fupstream%2Fllvm.git Fix unused variable warning. NFCI. llvm-svn: 356839 --- diff --git a/clang/lib/CodeGen/CGCXX.cpp b/clang/lib/CodeGen/CGCXX.cpp index af20856..adaeacf 100644 --- a/clang/lib/CodeGen/CGCXX.cpp +++ b/clang/lib/CodeGen/CGCXX.cpp @@ -222,7 +222,7 @@ llvm::FunctionCallee CodeGenModule::getAddrAndTypeOfCXXStructor( bool DontDefer, ForDefinition_t IsForDefinition) { auto *MD = cast(GD.getDecl()); - if (auto *DD = dyn_cast(MD)) { + if (isa(MD)) { // Always alias equivalent complete destructors to base destructors in the // MS ABI. if (getTarget().getCXXABI().isMicrosoft() &&