Fix warning on unused variables. NFC.

This commit is contained in:
Michael Liao 2020-02-06 12:19:55 -05:00
parent b373ec8ce7
commit 318d0ede57
1 changed files with 1 additions and 1 deletions

View File

@ -3667,7 +3667,7 @@ void CGDebugInfo::EmitFunctionStart(GlobalDecl GD, SourceLocation Loc,
} else {
Name = Fn->getName();
if (const auto *BD = dyn_cast<BlockDecl>(D))
if (isa<BlockDecl>(D))
LinkageName = Name;
Flags |= llvm::DINode::FlagPrototyped;