Skip to content

Commit 7940b05

Browse files
[BOLT] Fix warning
This patch fixes: bolt/lib/Core/BinaryContext.cpp:582:8: error: unused variable 'printEntryDiagnostics' [-Werror,-Wunused-variable] bolt/lib/Core/BinaryContext.cpp:842:10: error: unused variable 'isSibling' [-Werror,-Wunused-variable]
1 parent 6196379 commit 7940b05

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bolt/lib/Core/BinaryContext.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,7 @@ bool BinaryContext::analyzeJumpTable(const uint64_t Address,
663663
const BinaryFunction *TargetBF = getBinaryFunctionContainingAddress(Value);
664664
if (!TargetBF || !areRelatedFragments(TargetBF, &BF)) {
665665
LLVM_DEBUG(printEntryDiagnostics(dbgs(), TargetBF));
666+
(void)printEntryDiagnostics;
666667
break;
667668
}
668669

@@ -843,6 +844,7 @@ BinaryContext::getOrCreateJumpTable(BinaryFunction &Function, uint64_t Address,
843844
&Function, std::placeholders::_1);
844845
assert(llvm::all_of(JT->Parents, isSibling) &&
845846
"cannot re-use jump table of a different function");
847+
(void)isSibling;
846848
if (opts::Verbosity > 2) {
847849
this->outs() << "BOLT-INFO: multiple fragments access the same jump table"
848850
<< ": " << *JT->Parents[0] << "; " << Function << '\n';

0 commit comments

Comments
 (0)