Skip to content

Commit 9933117

Browse files
[BOLT] Fix a warning
This patch fixes: bolt/lib/Passes/PAuthGadgetScanner.cpp:438:18: error: unused variable 'BC' [-Werror,-Wunused-variable]
1 parent b13373d commit 9933117

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bolt/lib/Passes/PAuthGadgetScanner.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ void Analysis::computeDetailedInfo(BinaryFunction &BF,
455455
for (auto Report : Result.Diagnostics) {
456456
LLVM_DEBUG(
457457
{ traceInst(BC, "Attaching clobbering info to", Report->Location); });
458+
(void)BC;
458459
Report->setOverwritingInstrs(PRWIA.getLastClobberingInsts(
459460
Report->Location, BF, Report->getAffectedRegisters()));
460461
}

0 commit comments

Comments
 (0)