Skip to content

Commit 574dbe3

Browse files
authored
suppresses unused variable warning (#99526)
1 parent 3d69bbc commit 574dbe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3361,7 +3361,7 @@ void InstrRefBasedLDV::buildVLocValueMap(
33613361
continue;
33623362
if (BlockLiveIn->Kind == DbgValue::VPHI)
33633363
BlockLiveIn->Kind = DbgValue::Def;
3364-
auto &[Var, DILoc] = DVMap.lookupDVID(VarID);
3364+
[[maybe_unused]] auto &[Var, DILoc] = DVMap.lookupDVID(VarID);
33653365
assert(BlockLiveIn->Properties.DIExpr->getFragmentInfo() ==
33663366
Var.getFragment() &&
33673367
"Fragment info missing during value prop");

0 commit comments

Comments
 (0)