Skip to content

Commit 7622bf9

Browse files
[IR] Remove an unnecessary cast (NFC) (#146464)
The destructor does not return anything.
1 parent bb08010 commit 7622bf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/IR/Metadata.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ MDNode::Header::~Header() {
699699
}
700700
MDOperand *O = reinterpret_cast<MDOperand *>(this);
701701
for (MDOperand *E = O - SmallSize; O != E; --O)
702-
(void)(O - 1)->~MDOperand();
702+
(O - 1)->~MDOperand();
703703
}
704704

705705
void *MDNode::Header::getSmallPtr() {

0 commit comments

Comments
 (0)