Skip to content

Commit e71f9d2

Browse files
[BOLT] Fix an unused-variable warning
This patch fixes: bolt/lib/Core/DIEBuilder.cpp:468:18: error: unused variable 'Ref' [-Werror,-Wunused-variable]
1 parent e37fc3c commit e71f9d2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bolt/lib/Core/DIEBuilder.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ void DIEBuilder::cloneDieReferenceAttribute(
484484

485485
if (!DieInfo.Die) {
486486
assert(Ref > InputDIE.getOffset());
487+
(void)Ref;
487488
errs() << "BOLT-WARNING: [internal-dwarf-error]: encounter unexpected "
488489
"unallocated DIE. Should be alloc!\n";
489490
// We haven't cloned this DIE yet. Just create an empty one and

0 commit comments

Comments
 (0)