Skip to content

Commit c546825

Browse files
committed
[llvm] Fix unused variable warnings
1 parent 264d435 commit c546825

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,7 @@ static void collectCallSiteParameters(const MachineInstr *CallMI,
807807
auto Suc = std::next(CallMI->getIterator());
808808
// Only one-instruction delay slot is supported.
809809
auto BundleEnd = llvm::getBundleEnd(CallMI->getIterator());
810+
(void)BundleEnd;
810811
assert(std::next(Suc) == BundleEnd &&
811812
"More than one instruction in call delay slot");
812813
// Try to interpret value loaded by instruction.
@@ -856,7 +857,9 @@ void DwarfDebug::constructCallSiteEntryDIEs(const DISubprogram &SP,
856857
return false;
857858
auto Suc = std::next(MI.getIterator());
858859
auto CallInstrBundle = getBundleStart(MI.getIterator());
860+
(void)CallInstrBundle;
859861
auto DelaySlotBundle = getBundleStart(Suc);
862+
(void)DelaySlotBundle;
860863
// Ensure that label after call is following delay slot instruction.
861864
// Ex. CALL_INSTRUCTION {
862865
// DELAY_SLOT_INSTRUCTION }
@@ -1893,6 +1896,7 @@ void DwarfDebug::beginInstruction(const MachineInstr *MI) {
18931896
if (!MI.isBundledWithSucc())
18941897
return false;
18951898
auto Suc = std::next(MI.getIterator());
1899+
(void)Suc;
18961900
// Ensure that delay slot instruction is successor of the call instruction.
18971901
// Ex. CALL_INSTRUCTION {
18981902
// DELAY_SLOT_INSTRUCTION }

0 commit comments

Comments
 (0)