Fix unused variable warning. NFCI.

llvm-svn: 356839
This commit is contained in:
Simon Pilgrim 2019-03-23 16:16:46 +00:00
parent 40483e1831
commit 1ba406c9fc
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ llvm::FunctionCallee CodeGenModule::getAddrAndTypeOfCXXStructor(
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() &&