Skip to content

Commit dc7897a

Browse files
authored
[BOLT][NFC] Fix unused variable warning (#93323)
This fixes ``` warning: variable 'AbbrDecl' set but not used [-Wunused-but-set-variable] 76 | if (const DWARFAbbreviationDeclaration *AbbrDecl = ```
1 parent e897b0b commit dc7897a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bolt/lib/Rewrite/DWARFRewriter.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ static void printDie(DWARFUnit &DU, uint64_t DIEOffset) {
7373
DWARFDataExtractor DebugInfoData = DU.getDebugInfoExtractor();
7474
DWARFDebugInfoEntry DIEEntry;
7575
if (DIEEntry.extractFast(DU, &DIEOffset, DebugInfoData, NextCUOffset, 0)) {
76-
if (const DWARFAbbreviationDeclaration *AbbrDecl =
77-
DIEEntry.getAbbreviationDeclarationPtr()) {
76+
if (DIEEntry.getAbbreviationDeclarationPtr()) {
7877
DWARFDie DDie(&DU, &DIEEntry);
7978
printDie(DDie);
8079
} else {

0 commit comments

Comments
 (0)