r356839 - Fix unused variable warning. NFCI.
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Sat Mar 23 09:16:46 PDT 2019
Author: rksimon
Date: Sat Mar 23 09:16:46 2019
New Revision: 356839
URL: http://llvm.org/viewvc/llvm-project?rev=356839&view=rev
Log:
Fix unused variable warning. NFCI.
Modified:
cfe/trunk/lib/CodeGen/CGCXX.cpp
Modified: cfe/trunk/lib/CodeGen/CGCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCXX.cpp?rev=356839&r1=356838&r2=356839&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGCXX.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCXX.cpp Sat Mar 23 09:16:46 2019
@@ -222,7 +222,7 @@ llvm::FunctionCallee CodeGenModule::getA
bool DontDefer, ForDefinition_t IsForDefinition) {
auto *MD = cast<CXXMethodDecl>(GD.getDecl());
- if (auto *DD = dyn_cast<CXXDestructorDecl>(MD)) {
+ if (isa<CXXDestructorDecl>(MD)) {
// Always alias equivalent complete destructors to base destructors in the
// MS ABI.
if (getTarget().getCXXABI().isMicrosoft() &&
More information about the cfe-commits
mailing list