Skip to content

Commit 5e245ab

Browse files
committed
[IR][NFC] Fix warnings for variables that are only used in assertions
NFC.
1 parent 1df5ea2 commit 5e245ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/IR/Instruction.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,8 @@ iterator_range<DPValue::self_iterator>
244244
Instruction::getDbgValueRange() const {
245245
BasicBlock *Parent = const_cast<BasicBlock *>(getParent());
246246
assert(Parent && "Instruction must be inserted to have DPValues");
247+
(void)Parent;
248+
247249
if (!DbgMarker)
248250
return DPMarker::getEmptyDPValueRange();
249251

0 commit comments

Comments
 (0)