Remove an unsued-variable warning, NFC.

This commit is contained in:
Haojian Wu 2022-07-15 13:25:02 +02:00
parent 81bffdf6a5
commit 5775c5d05c
1 changed files with 4 additions and 4 deletions

View File

@ -1007,10 +1007,10 @@ void DeclPrinter::VisitCXXRecordDecl(CXXRecordDecl *D) {
}
}
if (auto *Def = D->getDefinition()) {
if (D->hasAttr<FinalAttr>()) {
Out << " final";
}
if (D->hasDefinition()) {
if (D->hasAttr<FinalAttr>()) {
Out << " final";
}
}
if (D->isCompleteDefinition()) {